the spatial domain processes discussed in this chapter are denoted by the expression
DESCRIPTION
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) - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/1.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 2: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/2.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
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)
![Page 3: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/3.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 4: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/4.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
• Function imadjust: Function imadjust is the basic IPT tool for intensity
transformations of gray scale images. It has the syntax
g=imadjust(f, [low_in high_in], [low_out high_out], gamma)
![Page 5: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/5.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
Negative image, obtained using the command
>>g1=imadjust(f,[0,1],[1,0]);
This process, which is the digital equivalent of obtaining a photographic negative, is particularly useful for enhancing white or gray detail embedded in a large, predominantly dark region.
![Page 6: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/6.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
• The negative of an image can be obtained also with IPT function imcomplement
>> g=imcomplement(f)• Expanding the gray scale region between 0.5 and 0.75 to the
full [0,1] range: >> g2=imadjust(f,[0.5 0.75], [0 1]);
This type of processing is useful for highlighting an intensity band of interest.
• >> g3=imadjust(f,[ ],[ ],2); produces a similar result by compressing the low end and
expanding the high end of the gray scale.
![Page 7: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/7.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 8: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/8.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 9: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/9.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 10: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/10.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 11: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/11.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 12: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/12.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
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)
![Page 13: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/13.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 14: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/14.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
g2=imadjust(f,[0.5 0.75], [0.8 0.8]);
![Page 15: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/15.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 16: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/16.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
Bit-plane slicing : Pixels are digital numbers composed of bits. For example, the intensity of each pixel in an 256-level gray-scale image is composed of 8 bits (i.e., one byte).
Instead of highlighting intensity-level ranges, we could highlight the contribution made to total image appearance by specific bits.
![Page 17: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/17.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 18: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/18.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 19: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/19.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
The histogram of a digital image with intensity levels in the range [0, L-1] is a discrete function h(rk)=nk
Where rk is the kth intensity value and nk is the number of pixels in the image with intensity rk.
It is common practice to normalize to normalize a histogram by dividing each of its components by the total number of pixels in the image, denoted by the product MN, where, as usual, M and N are row and column dimensions of the image.
![Page 20: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/20.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
Histogram Equalization
![Page 21: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/21.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 22: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/22.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 23: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/23.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
Histogram Equalization is implemented in the toolbox by function histeq, which has the syntax
g=histeq(f,nlev)
where f is the input image and nlev is the number of intensity levels specified for the output image. Default value is nlev=64
![Page 24: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/24.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 25: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/25.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 26: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/26.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
Histogram Matching-Histogram Specification
![Page 27: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/27.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 28: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/28.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 29: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/29.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 30: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/30.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 31: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/31.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 32: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/32.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 33: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/33.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering
![Page 34: The spatial domain processes discussed in this chapter are denoted by the expression](https://reader035.vdocuments.mx/reader035/viewer/2022062518/56814865550346895db57293/html5/thumbnails/34.jpg)
Digital Image Processing, 3rd ed.Digital Image Processing, 3rd ed.
www.ImageProcessingPlace.com
© 1992–2008 R. C. Gonzalez & R. E. Woods
Gonzalez & Woods
Chapter 3 Intensity Transformations & Spatial Filtering
Chapter 3 Intensity Transformations & Spatial Filtering