SlideShare a Scribd company logo
Advanced Image Processing
By Aakanksha Jain
M. tech Scholar
Image Enhancement Techniques
• What do you mean by image enhancement ?
• Techniques used in image enhancement.
• Basic Gray level Transformations.
• Histogram Processing.
• Enhancement using Arithmetic/Logic Operations.
Image Enhancement
Image Enhancement is a method of improving the
definition of a video ,picture by a computer program,
which reduces the lowest grey values to black and the
highest to white: used for pictures from microscopes,
surveillance cameras, and scanners . Resultant image is
more suitable than original image for a specific
application.
Techniques used in Image enhancement
The existing techniques of image enhancement can be
classified into two categories:
• Spatial domain methods :Spatial domain refers to the
aggregate of pixels composing an image. Approaches
in this category are based on direct manipulation of
pixels in an image.
• Frequency domain methods :Frequency domain
processing techniques are based on modifying the
Fourier transform of an image.
Basic Gray level Transformations
• In Gray level transformations values of pixels, before and after processing, will be
denoted by rand s, respectively ,these values are related
by an expression of the form s=T(r), where T is a transformation that maps a
pixel value r into a pixel value s .
Fig. shows three basic types of
functions used frequently for
image enhancement: linear
(negative and identity transformations),
logarithmic (log and inverse-log
transformations), and power-law
(nth power and nth root transformations)
Continue….
1. Image Negatives
(a)Original Image (b)Negative Transformation
The negative of an image with gray levels in the range
[0, L-1] , is obtained by using the negative transformation
shown in figure,
which is given by the expression
s = L - 1 – r
This type of processing is particularly suited
for enhancing white or gray detail embedded in dark regions
of an image, especially when the black areas are dominant
in size
Continue….
2. Log Transformations
(a)Fourier Spectrum (b) Log transformed image for c=1
Log Transformation maps a narrow range of low gray-level
values in the input image into a wider range of output
Levels . The opposite is true of higher values of input levels.
We would use a transformation of this type to
expand the values of dark pixels in an image while
compressing the higher-level
values.
The general form of the log transformation is
s = c log(1 + r)
where c is a constant and r is assumed to be greater and
equal to 0
Continue….
3. Power-Law Transformation
Power-law transformation have the basic form
Here c is a positive constant. Sometime above eq. written
As to account for an offset (that is, a
measurable output when theinput is zero).
fig. (a) Aerial image. (b)–(d) Results of
applying the transformation with c=1 and
g=3.0, 4.0, and 5.0, respectively
(a)
(b)
(d)(c)
Continue….
4. Piecewise-Linear Transformation Functions
A complementary approach to the previously discussed methods is to use piecewise linear functions. The
principal advantage of piecewise linear functions is that the form of piecewise functions can be arbitrarily
complex. In fact, as we will see shortly,a practical implementation of some important transformations can be
formulated only as piecewise functions.
Disadvantage: Disadvantage of piecewise functions is that their specification requires considerably more user
input.
There are 3 function of Piecewise-Linear Transformation:
(1). Contrast stretching
(2). Gray-level slicing
(3). Bit-plane slicing
Histogram Processing
• Histograms are the basis for numerous spatial domain processing techniques.
Histogram manipulation can be used effectively for image enhancement.
• The histogram of a digital image with gray levels in the range [0,L-1] is a discrete
function h(rk)=nk, where rk is the kth gray level and nk is the number of pixels in the
image having gray level rk. It is common practice to normalize a histogram by
dividing each of its values by the total number of pixels in the image, denoted by
n.Thus, a normalized histogram is given by p(rk)=nk/n, for k=0,1,p,L-1.Loosely
speaking, p(rk) gives an estimate of the probability of occurrence of gray level rk.
Note that the sum of all components of a normalized histogram is equal to 1.
(negative and identity transformations),
• Histograms are simple to calculate in software and also lend themselves to
economic hardware implementations, thus making them a popular tool for real-time
image processing.
• The horizontal axis of each histogram plot corresponds to gray level values, rk. The
vertical axis corresponds to values of h(rk)=nk or p(rk)=nk/n if the values are
normalized. Thus , as indicated previously , these histogram plots are simply plots of
h(rk)=nk versus rk or p(rk)=nk/n versus rk.
Continue..
Fig: Four basic image types : dark, light , low contrast, high contrast
,and their corresponding histograms.
Continue….
1. Histogram Equalization:
(a)Original Image (b)Negative Transformation
Histogram equalization is a technique for adjusting
image intensities to enhance contrast. Let f be a
given image represented as a mr by mc matrix of
integer pixel intensities ranging. So L is the number
of possible intensity values, often 256. Let p denote
the normalized histogram of f with a bin for each
possible intensity. So
Pn = number of pixels with intensity n /total number
of pixels
Where n = 0,1,...,L − 1.
Continue….
2. Histogram Matching (Specification):
In image processing, histogram matching or histogram specification is the transformation of an
image so that its histogram matches a specified histogram.
When automatic enhancement is desired, this is a good approach because the results from this
technique are predictable and the method is simple to implement. In particular, it is useful
sometimes to be able to specify the shape of the histogram that we wish the processed image to
have. The method used to generate a processed image that has a specified histogram is called
histogram matching or histogram specification.
Here we want to convert the image so that it has a particular histogram that can be arbitrarily
specified. Such a mapping function can
be found in three steps:
• Equalize the histogram of the input image
• Equalize the specified histogram
• Relate the two equalized histograms
Histogram Matching Continue….
We first equalize the histogram Px of the input image x :
We then equalize the desired histogramPz of the output image z :
The inverse of the above transform is
As the two intermediate images Y andY’ both have the same equalized histogram, they are actually the same image,
i.e., Y=Y’ , and the overall transform from the given image x to the desired image z can be found to be:
Enhancement Using Arithmetic/Logic
Operations:
• Arithmetic/logic operations involving images are performed on a pixel-by-pixel basis
between two or more images (this excludes the logic operation NOT, which is
performed on a single image).As an example , subtraction of two images results in a
new image whose pixel at coordinates (x,y)is the difference between the pixels in
that same location in the two images being subtracted. Depending on the hardware
and/or software being used, the actual mechanics of implementing arithmetic/logic
operations can be done sequentially done.
• When dealing with logic operations on gray-scale images, pixel values are processed
as strings of binary numbers. For example, performing the NOT operation on a black,
8-bit pixel (a string of eight 0’s) produces a white pixel (a string of eight 1’s).
• Intermediate values are processed the same way, changing all 1’s to 0’s and vice
versa. In the AND and OR image masks, light represents a binary 1 and dark
represents a binary 0.Masking sometimes is referred to as region of interest (ROI)
processing
Continue..
Fig: (a) Original image.(b)AND image mask. (c) Result of the AND
operation on images (a) and (b).(d) Original image.(e) OR image mask.
(f) Result of operation OR on images (d) and (e).
Continue….
There are 2 methods of Enhancement Using Arithmetic/Logic Operations :
(1). Image Subtraction
(2). Image Averaging
Image subtraction or pixel subtraction is a process whereby the digital numeric value of one pixel or
whole image is subtracted from another image. This is primarily done for one of two reasons – levelling
uneven sections of an image such as half an image having a shadow on it, or detecting changes between
two images.[1] This detection of changes can be used to tell if something in the image moved. This is
commonly used in fields such as astrophotography to assist with the computerized search for asteroids or
Kuiper belt objects in which the target is moving and would be in one place in one image, and another
from an image one hour later and where using this technique would make the fixed stars in the
background disappear leaving only the target.
The difference between two images f(x, y) and h(x, y), expressed as
1. Image Subtraction:
Continue….
Consider a noisy image g(x, y) formed by the addition of noise N(x, y) to an original image f(x, y);that is,
where the assumption is that at every pair of coordinates (x,y)the noise is uncorrelated† and
has zero average value. The objective of the following procedure is to reduce the noise content
by adding a set of noisy images, {gi(x, y)}
If the noise satisfies the constraints just stated, that if an image is formed by averaging K
different noisy images,
2. Image Averaging:

More Related Content

What's hot

Image segmentation
Image segmentationImage segmentation
Image segmentation
Md Shabir Alam
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing Presentation
Revanth Chimmani
 
Point processing
Point processingPoint processing
Point processing
panupriyaa7
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
A B Shinde
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
University of Potsdam
 
Image noise reduction
Image noise reductionImage noise reduction
Image noise reduction
Jksuryawanshi
 
4.intensity transformations
4.intensity transformations4.intensity transformations
4.intensity transformationsYahya Alkhaldi
 
image enhancement
 image enhancement image enhancement
image enhancement
Rajendra Prasad
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
Kalyan Acharjya
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filtering
Gautam Saxena
 
Psuedo color
Psuedo colorPsuedo color
Psuedo color
Mariashoukat1206
 
Image enhancement
Image enhancementImage enhancement
Image enhancementAyaelshiwi
 
Histogram Equalization
Histogram EqualizationHistogram Equalization
Histogram Equalization
Kalyan Acharjya
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
khyati gupta
 
IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
Tawose Olamide Timothy
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
A B Shinde
 
Hit and-miss transform
Hit and-miss transformHit and-miss transform
Hit and-miss transform
Krish Everglades
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
asodariyabhavesh
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
asodariyabhavesh
 

What's hot (20)

image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing Presentation
 
Point processing
Point processingPoint processing
Point processing
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
 
Image noise reduction
Image noise reductionImage noise reduction
Image noise reduction
 
4.intensity transformations
4.intensity transformations4.intensity transformations
4.intensity transformations
 
image enhancement
 image enhancement image enhancement
image enhancement
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filtering
 
Psuedo color
Psuedo colorPsuedo color
Psuedo color
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Histogram Equalization
Histogram EqualizationHistogram Equalization
Histogram Equalization
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Hit and-miss transform
Hit and-miss transformHit and-miss transform
Hit and-miss transform
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 

Similar to Image processing second unit Notes

Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point Processing
Gayathri31093
 
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUUNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
ankushspencer015
 
Chap5 imange enhancemet
Chap5 imange enhancemetChap5 imange enhancemet
Chap5 imange enhancemet
ShardaSalunkhe1
 
Digital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domainDigital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domainMalik obeisat
 
Image Enhancement in the Spatial Domain.pdf
Image Enhancement in the Spatial Domain.pdfImage Enhancement in the Spatial Domain.pdf
Image Enhancement in the Spatial Domain.pdf
kamaluddinnstu
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
Kuppusamy P
 
Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2
Surabhi Ks
 
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
Hemantha Kulathilake
 
Module 2
Module 2Module 2
Module 2
UllasSS1
 
Ch 3. Image Enhancement in the Spatial Domain_okay.ppt
Ch 3. Image Enhancement in the Spatial Domain_okay.pptCh 3. Image Enhancement in the Spatial Domain_okay.ppt
Ch 3. Image Enhancement in the Spatial Domain_okay.ppt
nurulrahat02
 
3rd unit.pptx
3rd unit.pptx3rd unit.pptx
3rd unit.pptx
ssuser0bf6a8
 
Image Enhancement in the Spatial Domain U2.ppt
Image Enhancement in the Spatial Domain U2.pptImage Enhancement in the Spatial Domain U2.ppt
Image Enhancement in the Spatial Domain U2.ppt
ssuser7ec6af
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
Dr INBAMALAR T M
 
Intensity Transformation and Spatial filtering
Intensity Transformation and Spatial filteringIntensity Transformation and Spatial filtering
Intensity Transformation and Spatial filtering
Shajun Nisha
 
DIP Lecture 7-9.pdf
DIP Lecture 7-9.pdfDIP Lecture 7-9.pdf
DIP Lecture 7-9.pdf
SAhsanShahBukhari
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides
BHAGYAPRASADBUGGE
 
Image enhancement lecture
Image enhancement lectureImage enhancement lecture
Image enhancement lecture
ISRAR HUSSAIN
 
Lec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdfLec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdf
nagwaAboElenein
 
chapter 4 computervision.pdf IT IS ABOUT COMUTER VISION
chapter 4 computervision.pdf IT IS ABOUT COMUTER VISIONchapter 4 computervision.pdf IT IS ABOUT COMUTER VISION
chapter 4 computervision.pdf IT IS ABOUT COMUTER VISION
shesnasuneer
 

Similar to Image processing second unit Notes (20)

h.pdf
h.pdfh.pdf
h.pdf
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point Processing
 
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUUNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
 
Chap5 imange enhancemet
Chap5 imange enhancemetChap5 imange enhancemet
Chap5 imange enhancemet
 
Digital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domainDigital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domain
 
Image Enhancement in the Spatial Domain.pdf
Image Enhancement in the Spatial Domain.pdfImage Enhancement in the Spatial Domain.pdf
Image Enhancement in the Spatial Domain.pdf
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2
 
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
 
Module 2
Module 2Module 2
Module 2
 
Ch 3. Image Enhancement in the Spatial Domain_okay.ppt
Ch 3. Image Enhancement in the Spatial Domain_okay.pptCh 3. Image Enhancement in the Spatial Domain_okay.ppt
Ch 3. Image Enhancement in the Spatial Domain_okay.ppt
 
3rd unit.pptx
3rd unit.pptx3rd unit.pptx
3rd unit.pptx
 
Image Enhancement in the Spatial Domain U2.ppt
Image Enhancement in the Spatial Domain U2.pptImage Enhancement in the Spatial Domain U2.ppt
Image Enhancement in the Spatial Domain U2.ppt
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Intensity Transformation and Spatial filtering
Intensity Transformation and Spatial filteringIntensity Transformation and Spatial filtering
Intensity Transformation and Spatial filtering
 
DIP Lecture 7-9.pdf
DIP Lecture 7-9.pdfDIP Lecture 7-9.pdf
DIP Lecture 7-9.pdf
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides
 
Image enhancement lecture
Image enhancement lectureImage enhancement lecture
Image enhancement lecture
 
Lec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdfLec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdf
 
chapter 4 computervision.pdf IT IS ABOUT COMUTER VISION
chapter 4 computervision.pdf IT IS ABOUT COMUTER VISIONchapter 4 computervision.pdf IT IS ABOUT COMUTER VISION
chapter 4 computervision.pdf IT IS ABOUT COMUTER VISION
 

More from AAKANKSHA JAIN

Random forest and decision tree
Random forest and decision treeRandom forest and decision tree
Random forest and decision tree
AAKANKSHA JAIN
 
Dimension reduction techniques[Feature Selection]
Dimension reduction techniques[Feature Selection]Dimension reduction techniques[Feature Selection]
Dimension reduction techniques[Feature Selection]
AAKANKSHA JAIN
 
Inheritance in OOPs with java
Inheritance in OOPs with javaInheritance in OOPs with java
Inheritance in OOPs with java
AAKANKSHA JAIN
 
OOPs with java
OOPs with javaOOPs with java
OOPs with java
AAKANKSHA JAIN
 
Probability
ProbabilityProbability
Probability
AAKANKSHA JAIN
 
Data Mining & Data Warehousing
Data Mining & Data WarehousingData Mining & Data Warehousing
Data Mining & Data Warehousing
AAKANKSHA JAIN
 
Distributed Database Design and Relational Query Language
Distributed Database Design and Relational Query LanguageDistributed Database Design and Relational Query Language
Distributed Database Design and Relational Query Language
AAKANKSHA JAIN
 
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUESDISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
AAKANKSHA JAIN
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management System
AAKANKSHA JAIN
 
DETECTION OF MALICIOUS EXECUTABLES USING RULE BASED CLASSIFICATION ALGORITHMS
DETECTION OF MALICIOUS EXECUTABLES USING RULE BASED CLASSIFICATION ALGORITHMSDETECTION OF MALICIOUS EXECUTABLES USING RULE BASED CLASSIFICATION ALGORITHMS
DETECTION OF MALICIOUS EXECUTABLES USING RULE BASED CLASSIFICATION ALGORITHMS
AAKANKSHA JAIN
 
Fingerprint matching using ridge count
Fingerprint matching using ridge countFingerprint matching using ridge count
Fingerprint matching using ridge count
AAKANKSHA JAIN
 
Advance image processing
Advance image processingAdvance image processing
Advance image processing
AAKANKSHA JAIN
 

More from AAKANKSHA JAIN (12)

Random forest and decision tree
Random forest and decision treeRandom forest and decision tree
Random forest and decision tree
 
Dimension reduction techniques[Feature Selection]
Dimension reduction techniques[Feature Selection]Dimension reduction techniques[Feature Selection]
Dimension reduction techniques[Feature Selection]
 
Inheritance in OOPs with java
Inheritance in OOPs with javaInheritance in OOPs with java
Inheritance in OOPs with java
 
OOPs with java
OOPs with javaOOPs with java
OOPs with java
 
Probability
ProbabilityProbability
Probability
 
Data Mining & Data Warehousing
Data Mining & Data WarehousingData Mining & Data Warehousing
Data Mining & Data Warehousing
 
Distributed Database Design and Relational Query Language
Distributed Database Design and Relational Query LanguageDistributed Database Design and Relational Query Language
Distributed Database Design and Relational Query Language
 
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUESDISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
DISTRIBUTED DATABASE WITH RECOVERY TECHNIQUES
 
Distributed Database Management System
Distributed Database Management SystemDistributed Database Management System
Distributed Database Management System
 
DETECTION OF MALICIOUS EXECUTABLES USING RULE BASED CLASSIFICATION ALGORITHMS
DETECTION OF MALICIOUS EXECUTABLES USING RULE BASED CLASSIFICATION ALGORITHMSDETECTION OF MALICIOUS EXECUTABLES USING RULE BASED CLASSIFICATION ALGORITHMS
DETECTION OF MALICIOUS EXECUTABLES USING RULE BASED CLASSIFICATION ALGORITHMS
 
Fingerprint matching using ridge count
Fingerprint matching using ridge countFingerprint matching using ridge count
Fingerprint matching using ridge count
 
Advance image processing
Advance image processingAdvance image processing
Advance image processing
 

Recently uploaded

The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 

Recently uploaded (20)

The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 

Image processing second unit Notes

  • 1. Advanced Image Processing By Aakanksha Jain M. tech Scholar
  • 2. Image Enhancement Techniques • What do you mean by image enhancement ? • Techniques used in image enhancement. • Basic Gray level Transformations. • Histogram Processing. • Enhancement using Arithmetic/Logic Operations.
  • 3. Image Enhancement Image Enhancement is a method of improving the definition of a video ,picture by a computer program, which reduces the lowest grey values to black and the highest to white: used for pictures from microscopes, surveillance cameras, and scanners . Resultant image is more suitable than original image for a specific application.
  • 4. Techniques used in Image enhancement The existing techniques of image enhancement can be classified into two categories: • Spatial domain methods :Spatial domain refers to the aggregate of pixels composing an image. Approaches in this category are based on direct manipulation of pixels in an image. • Frequency domain methods :Frequency domain processing techniques are based on modifying the Fourier transform of an image.
  • 5. Basic Gray level Transformations • In Gray level transformations values of pixels, before and after processing, will be denoted by rand s, respectively ,these values are related by an expression of the form s=T(r), where T is a transformation that maps a pixel value r into a pixel value s . Fig. shows three basic types of functions used frequently for image enhancement: linear (negative and identity transformations), logarithmic (log and inverse-log transformations), and power-law (nth power and nth root transformations)
  • 6. Continue…. 1. Image Negatives (a)Original Image (b)Negative Transformation The negative of an image with gray levels in the range [0, L-1] , is obtained by using the negative transformation shown in figure, which is given by the expression s = L - 1 – r This type of processing is particularly suited for enhancing white or gray detail embedded in dark regions of an image, especially when the black areas are dominant in size
  • 7. Continue…. 2. Log Transformations (a)Fourier Spectrum (b) Log transformed image for c=1 Log Transformation maps a narrow range of low gray-level values in the input image into a wider range of output Levels . The opposite is true of higher values of input levels. We would use a transformation of this type to expand the values of dark pixels in an image while compressing the higher-level values. The general form of the log transformation is s = c log(1 + r) where c is a constant and r is assumed to be greater and equal to 0
  • 8. Continue…. 3. Power-Law Transformation Power-law transformation have the basic form Here c is a positive constant. Sometime above eq. written As to account for an offset (that is, a measurable output when theinput is zero). fig. (a) Aerial image. (b)–(d) Results of applying the transformation with c=1 and g=3.0, 4.0, and 5.0, respectively (a) (b) (d)(c)
  • 9. Continue…. 4. Piecewise-Linear Transformation Functions A complementary approach to the previously discussed methods is to use piecewise linear functions. The principal advantage of piecewise linear functions is that the form of piecewise functions can be arbitrarily complex. In fact, as we will see shortly,a practical implementation of some important transformations can be formulated only as piecewise functions. Disadvantage: Disadvantage of piecewise functions is that their specification requires considerably more user input. There are 3 function of Piecewise-Linear Transformation: (1). Contrast stretching (2). Gray-level slicing (3). Bit-plane slicing
  • 10. Histogram Processing • Histograms are the basis for numerous spatial domain processing techniques. Histogram manipulation can be used effectively for image enhancement. • The histogram of a digital image with gray levels in the range [0,L-1] is a discrete function h(rk)=nk, where rk is the kth gray level and nk is the number of pixels in the image having gray level rk. It is common practice to normalize a histogram by dividing each of its values by the total number of pixels in the image, denoted by n.Thus, a normalized histogram is given by p(rk)=nk/n, for k=0,1,p,L-1.Loosely speaking, p(rk) gives an estimate of the probability of occurrence of gray level rk. Note that the sum of all components of a normalized histogram is equal to 1. (negative and identity transformations), • Histograms are simple to calculate in software and also lend themselves to economic hardware implementations, thus making them a popular tool for real-time image processing. • The horizontal axis of each histogram plot corresponds to gray level values, rk. The vertical axis corresponds to values of h(rk)=nk or p(rk)=nk/n if the values are normalized. Thus , as indicated previously , these histogram plots are simply plots of h(rk)=nk versus rk or p(rk)=nk/n versus rk.
  • 11. Continue.. Fig: Four basic image types : dark, light , low contrast, high contrast ,and their corresponding histograms.
  • 12. Continue…. 1. Histogram Equalization: (a)Original Image (b)Negative Transformation Histogram equalization is a technique for adjusting image intensities to enhance contrast. Let f be a given image represented as a mr by mc matrix of integer pixel intensities ranging. So L is the number of possible intensity values, often 256. Let p denote the normalized histogram of f with a bin for each possible intensity. So Pn = number of pixels with intensity n /total number of pixels Where n = 0,1,...,L − 1.
  • 13. Continue…. 2. Histogram Matching (Specification): In image processing, histogram matching or histogram specification is the transformation of an image so that its histogram matches a specified histogram. When automatic enhancement is desired, this is a good approach because the results from this technique are predictable and the method is simple to implement. In particular, it is useful sometimes to be able to specify the shape of the histogram that we wish the processed image to have. The method used to generate a processed image that has a specified histogram is called histogram matching or histogram specification. Here we want to convert the image so that it has a particular histogram that can be arbitrarily specified. Such a mapping function can be found in three steps: • Equalize the histogram of the input image • Equalize the specified histogram • Relate the two equalized histograms
  • 14. Histogram Matching Continue…. We first equalize the histogram Px of the input image x : We then equalize the desired histogramPz of the output image z : The inverse of the above transform is As the two intermediate images Y andY’ both have the same equalized histogram, they are actually the same image, i.e., Y=Y’ , and the overall transform from the given image x to the desired image z can be found to be:
  • 15. Enhancement Using Arithmetic/Logic Operations: • Arithmetic/logic operations involving images are performed on a pixel-by-pixel basis between two or more images (this excludes the logic operation NOT, which is performed on a single image).As an example , subtraction of two images results in a new image whose pixel at coordinates (x,y)is the difference between the pixels in that same location in the two images being subtracted. Depending on the hardware and/or software being used, the actual mechanics of implementing arithmetic/logic operations can be done sequentially done. • When dealing with logic operations on gray-scale images, pixel values are processed as strings of binary numbers. For example, performing the NOT operation on a black, 8-bit pixel (a string of eight 0’s) produces a white pixel (a string of eight 1’s). • Intermediate values are processed the same way, changing all 1’s to 0’s and vice versa. In the AND and OR image masks, light represents a binary 1 and dark represents a binary 0.Masking sometimes is referred to as region of interest (ROI) processing
  • 16. Continue.. Fig: (a) Original image.(b)AND image mask. (c) Result of the AND operation on images (a) and (b).(d) Original image.(e) OR image mask. (f) Result of operation OR on images (d) and (e).
  • 17. Continue…. There are 2 methods of Enhancement Using Arithmetic/Logic Operations : (1). Image Subtraction (2). Image Averaging Image subtraction or pixel subtraction is a process whereby the digital numeric value of one pixel or whole image is subtracted from another image. This is primarily done for one of two reasons – levelling uneven sections of an image such as half an image having a shadow on it, or detecting changes between two images.[1] This detection of changes can be used to tell if something in the image moved. This is commonly used in fields such as astrophotography to assist with the computerized search for asteroids or Kuiper belt objects in which the target is moving and would be in one place in one image, and another from an image one hour later and where using this technique would make the fixed stars in the background disappear leaving only the target. The difference between two images f(x, y) and h(x, y), expressed as 1. Image Subtraction:
  • 18. Continue…. Consider a noisy image g(x, y) formed by the addition of noise N(x, y) to an original image f(x, y);that is, where the assumption is that at every pair of coordinates (x,y)the noise is uncorrelated† and has zero average value. The objective of the following procedure is to reduce the noise content by adding a set of noisy images, {gi(x, y)} If the noise satisfies the constraints just stated, that if an image is formed by averaging K different noisy images, 2. Image Averaging: