Image Processing Ch3: Intensity Transformation and spatial filters

Slides:



Advertisements
Similar presentations
Types of Image Enhancements in spatial domain
Advertisements

Digital Image Processing
Grey Level Enhancement Contrast stretching Linear mapping Non-linear mapping Efficient implementation of mapping algorithms Design of classes to support.
Image Processing Ch3: Intensity Transformation and spatial filters
Image Processing Lecture 4
Chapter 3 Image Enhancement in the Spatial Domain.
Chapter - 2 IMAGE ENHANCEMENT
Intensity Transformations (Chapter 3)
Digital Image Processing
Image Enhancement in the Spatial Domain
Image Processing Ch3: Intensity Transformation and spatial filters
Digital Image Processing
BYST Eh-1 DIP - WS2002: Enhancement in the Spatial Domain Digital Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department Image Enhancement.
Image Enhancement by Modifying Gray Scale of Individual Pixels
Lecture 4 Digital Image Enhancement
Digital Image Processing
Image Enhancement To process an image so that the result is more suitable than the original image for a specific application. Spatial domain methods and.
Digital Image Processing
Chap. 3: Image Enhancement in the Spatial Domain Spring 2006, Jen-Chang Liu CSIE, NCNU.
Digital Image Processing
Chapter 3 Image Enhancement in the Spatial Domain.
Lecture 4 Digital Image Enhancement
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 3 Intensity Transformations.
Chap2 Image enhancement (Spatial domain)
University of Ioannina - Department of Computer Science Intensity Transformations (Point Processing) Christophoros Nikou Digital Image.
CS654: Digital Image Analysis Lecture 17: Image Enhancement.
Chapter 3 Image Enhancement in the Spatial Domain.
Digital Image Processing Contrast Enhancement: Part I
CS6825: Point Processing Contents – not complete What is point processing? What is point processing? Altering/TRANSFORMING the image at a pixel only.
DIGITAL IMAGE PROCESSING
EE663 Image Processing Dr. Samir H. Abdul-Jauwad Electrical Engineering Department King Fahd University of Petroleum & Minerals.
Intensity Transformations or Translation in Spatial Domain.
CIS 601 – 04 Image ENHANCEMENT in the SPATIAL DOMAIN Longin Jan Latecki Based on Slides by Dr. Rolf Lakaemper.
Digital Image Processing EEE415 Lecture 3
Prepared by: Hanan Hardan
Lecture Reading  3.1 Background  3.2 Some Basic Gray Level Transformations Some Basic Gray Level Transformations  Image Negatives  Log.
EE 7730 Image Enhancement. Bahadir K. Gunturk2 Image Enhancement The objective of image enhancement is to process an image so that the result is more.
Digital Image Processing Image Enhancement in Spatial Domain
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 3 Image Enhancement in the Spatial Domain Chapter.
Image Enhancement in the Spatial Domain.
Chapter 3: Image Enhancement in the Spatial Domain
Lecture Six Figures from Gonzalez and Woods, Digital Image Processing, Second Edition, Copyright 2002.
IMAGE ENHANCEMENT TECHNIQUES
IMAGE PROCESSING INTENSITY TRANSFORMATION AND SPATIAL FILTERING
Digital Image Processing
Image Enhancement.
Intensity Transformations and Spatial Filtering
CIS 601 – 03 Image ENHANCEMENT SPATIAL DOMAIN Longin Jan Latecki
Digital Image Processing
Histogram Histogram is a graph that shows frequency of anything. Histograms usually have bars that represent frequency of occuring of data. Histogram has.
Fundamentals of Image Processing A Seminar on By Alok K. Watve
Image Enhancement in the Spatial Domain
Image Enhancement in the
Fundamentals of Spatial Filtering
Lecture 3 (2.5.07) Image Enhancement in Spatial Domain
CSC 381/481 Quarter: Fall 03/04 Daniela Stan Raicu
Image Enhancement Gray level transformation Linear transformation
Digital Image Processing
Lecture Four Chapter Three
Chapter 3 Image Enhancement in the Spatial Domain
Grey Level Enhancement
Image Enhancement To process an image so that the result is more suitable than the original image for a specific application. Spatial domain methods and.
CIS 4350 Image ENHANCEMENT SPATIAL DOMAIN
Intensity Transformations and Spatial Filtering
IT523 Digital Image Processing
Intensity Transform Contrast Stretching Y ← u0+γ*(Y-u)/s
IT523 Digital Image Processing
The spatial domain processes discussed in this chapter are denoted by the expression
Image Enhancement in the Spatial Domain
Presentation transcript:

Image Processing Ch3: Intensity Transformation and spatial filters Part 1 Prepared by: Tahani Khatib

Ch3, lesson1: Background Image Enhancement? Enhancement :تحسين الصورة is to process an image so that the result is more suitable than the original image for a specific application. Enhancement techniques fall into 2 types: Spatial domain: direct manipulation of pixels in the image plane Frequency domain: modifying Fourier transform of the image.  In this chapter, we are going to discuss spatial domain techniques

Ch3, lesson1: Background Spatial domain Spatial domain: aggregateتجمع of pixels composing an image Spatial domain processes: g(x,y) = T[f(x,y)] Input image Processed (output) image Operator T defined on some neighborhood of f(x,y)

Defining a neighborhood (T) Ch3, lesson1: Background Defining a neighborhood (T) Operator T is applied at each location (x,y) to produce the output g at that location.يطبق المربع على كل الصورة الاصلية لانتاج الصورة الجديدة This rectangle is called neighborhood or mask types of neighborhood: intensity transformation: neighborhood of size 1x1 spatial filter (or mask ,kernel, template or window): neighborhood of larger size , like in the above example.

Intensity transformations functions Ch3, lesson1: Background Intensity transformations functions The smallest mask is of size 1x1 (1 pixel) Here, T is called intensity transformation function or (mapping, gray level function) g(x,y) = T[f(x,y)] s= T(r) s,r : denote the intensity of g and f at any point (x,y) . s r

Intensity transformations functions Ch3, lesson1: Background Intensity transformations functions Intensity transformation functions fall into 2 approaches: Basic intensity transformations a) Linear ( negative and identity). b) logarithmic ( Log and Inverse Log) . c) Power( nth power and nth root). 2) piecewise Linear transformation functions. a) Contrast stretching, thresholding b) Gray-level slicing c) Bit-plane slicing

Basic intensity (gray level) transformations Ch3, lesson2: Basic gray level transformation Basic intensity (gray level) transformations Linear ( negative and identity). logarithmic ( Log and Inverse Log) . Power( nth power and nth root). التدرجات اللونية gray levels بالصورة بعد التعديل فمثلا, ان كان في البكسل 8 bit سيكون هناك 256 تدرج (L=256) التدرجات اللونية gray levels بالصورة قبل التعديل

Ch3, lesson2: Basic gray level transformation Basic intensity (gray level) transformations Linear ( negative and identity) The negative of an image with intensity levels in the range [0,L-1] is obtained by using the negative transformation : s= L-1-r Image (s( after applying T (negative) Image (r( Advantages of negative : Produces an equivalent of a photographic negative. Enhances white or gray detail embedded in dark regions.

Ch3, lesson2: Basic gray level transformation Basic intensity (gray level) transformations Linear ( negative and identity) The negative of an image with intensity levels in the range [0,L-1] is obtained by using the negative transformation : s= L-1-r Example the following matrix represents the pixels values of an 8-bit image (r) , apply negative transform and find the resulting image pixel values. solution: L= 28 = 256 s=L-1-r s =255-r Apply this transform to each pixel to find the negative Image (r) 95 90 110 100 135 145 140 98 85 88 89 115 99 105 102 Image (s) 160 165 145 155 120 110 115 157 170 167 166 140 156 150 153

Ch3, lesson2: Basic gray level transformation Basic intensity (gray level) transformations Linear ( negative and identity) Exercise: the following matrix represents the pixels values of a 5-bit image (r) , apply negative transform and find the resulting image pixel values. solution: Image (r) 30 29 26 21 20 19 31 16 23 27 18 Image (s)

Ch3, lesson3: piecewise Linear transformation functions. piecewise Linear transformation functions. 1. Contrast stretching and thresholding (r2, s2) (r2, s2) (r1, s1) (r1, s1) Contrast stretching Thresholding: Assume that a: rmin, b:rmax, k : intensity Contrast stretching: (r1,s1)=(rmin,0) , (r2,s2)=(rmax,L-1) Thresholding: (r1,s1)=(k,0) , (r2,s2)=(k,L-1)

Ch3, lesson3: piecewise Linear transformation functions. piecewise Linear transformation functions. Contrast stretching Example: in the graph, suppose we have the following intensities : a=90, b=180, m=100 if r is above 180 ,it becomes 255 in s. If r is below 90 , it becomes 0, If r is between 90, 180 , T applies as follows: when r < 100 , s closes تقتربto zero (darker) when r>100 , s closes to 255 (brighter)  Remember that: g(x,y) = T[f(x,y)] Or s= T(r) Pixels above 180 become 255 255 brighter If r >180; s =255 If r <180 and r<90; s=T(r) If r <90; s =0 T= darker This is called contrast stretching, which means that the bright pixels in the image will become brighter and the dark pixels will become darker, this means : higher contrast image. 255 Pixels less than 90 become 0

Ch3, lesson3: piecewise Linear transformation functions. piecewise Linear transformation functions. Contrast stretching Example Image (s( after applying T (contrast stretching) Image (r( Notice that the intensity transformation function T, made the pixels with dark intensities darker and the bright ones even more brighter, this is called contrast stretching>

Ch3, lesson3: piecewise Linear transformation functions. piecewise Linear transformation functions. thresholding  Remember that: Example: suppose m= 150 (called threshold), if r (or pixel intensity in image f الصورة الاصلية ) is above this threshold it becomes 1 in s (or pixel intensity in image g الصورة بعد التعديل), otherwise it becomes zero. g(x,y) = T[f(x,y)] Or s= T(r) Pixels above 150 become 1 255 If f(x,y)>150; g(x,y)=1 If f(x,y)<150; g(x,y)=0 T= Or simply… This is called thresholding, and it produces a binary image! If r >150; s =1 If r <150; s =0 T= 255 Pixels less than 150 become 0

Ch3, lesson3: piecewise Linear transformation functions. piecewise Linear transformation functions. thresholding Image (s( after applying T (Thresholding) Image (r( Notice that the intensity transformation function T, convert the pixels with dark intensities into black and the bright pixels into white. Pixels above threshold is considered bright and below it is considered dark, and this process is called thresholding.

Ch3, lesson3: piecewise Linear transformation functions. piecewise Linear transformation functions. Application on Contrast stretching and thresholding 8-bit image with low contrast After contrast stretching (r1,s1)=(rmin,0) , (r2,s2)=(rmax,L-1) Thresholding function (r1,s1)=(m,0) , (r2,s2)=(m,L-1) m : mean intensity level in the image

Ch3, lesson3: piecewise Linear transformation functions. piecewise Linear transformation functions. Exercise on Contrast stretching and thresholding Exercise: the following matrix represents the pixels values of a 8-bit image (r) , apply thresholding transform assuming that the threshold m=95, find the resulting image pixel values. solution: Image (r) 130 90 120 110 200 98 94 91 100 99 85 96 82 Image (s)