Professional Documents
Culture Documents
Remove Noise - T Compute Average of Intensity - Eight Neighbors Divided by 9 - Ignore Outside Neighbors - Spatial Filter
Remove Noise - T Compute Average of Intensity - Eight Neighbors Divided by 9 - Ignore Outside Neighbors - Spatial Filter
Chapter 3
Intensity Transformations & Spatial Filtering
•Remove Noise
•T compute average of intensity
•Eight Neighbors divided by 9
• Ignore outside neighbors
• Spatial Filter
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
• Contrast enhancement
– For example, a thresholding function
Chapter 3
Intensity Transformations & Spatial Filtering
The spatial domain processes discussed in this chapter are denoted by the
expression
g(x,y)=T[f(x,y)]
Where f(x,y) is the input image, g(x,y) is the output (processed) image, and T is
an operator on f, defined over a specified neighborhood about point (x,y)
Intensity transformation functions frequently are written in simplified form as
s=T(r)
Where r denotes the intensity of f and s the intensity of g, both at any
corresponding point (x,y)
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
• Function imadjust:
Function imadjust is the basic for intensity transformations of
gray scale images. It has the syntax
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
• Power-law transformations
• s cr or s c ( r )
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
• Monitor, 2.5
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
• Logarithmic Transformation:
Logarithmic transformations are implemented using the
expression
g= c*log(1+double(f))
where c is a constant. The shape of this transformation is similar
to the gamma curve with the low values set at 0 and the high
values set to 1 on both scales. Note, however, that the shape of
gamma curve is variable, whereas the shape of the log function
is fixed.
mat2gray(g) function brings the values to the range [0,1]
im2uint8 brings them to the range [0, 255]
g=im2uint8(mat2gray(log(1+double(f)));
imshow(g)
© 1992–2008 R. C. Gonzalez & R. E. Woods
Digital Image Processing, 3rd ed.
Gonzalez & Woods
www.ImageProcessingPlace.com
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Histogram Equalization
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering
Chapter 3
Intensity Transformations & Spatial Filtering