Successfully reported this slideshow.
Your SlideShare is downloading. ×

Lec-04 Image Enhancement II.ppt

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Upcoming SlideShare
Dip3
Dip3
Loading in …3
×

Check these out next

1 of 41 Ad

Lec-04 Image Enhancement II.ppt

Download to read offline

What are the 3 principles of information security?
When we discuss data and information, we must consider the CIA triad. The CIA triad refers to an information security model made up of the three main components: confidentiality, integrity and availability. Each component represents a fundamental objective of information security.

What are the 3 principles of information security?
When we discuss data and information, we must consider the CIA triad. The CIA triad refers to an information security model made up of the three main components: confidentiality, integrity and availability. Each component represents a fundamental objective of information security.

Advertisement
Advertisement

More Related Content

Similar to Lec-04 Image Enhancement II.ppt (20)

Recently uploaded (20)

Advertisement

Lec-04 Image Enhancement II.ppt

  1. 1. Digital Image Processing Lecture 04 Image Enhancement-II (Histogram Processing) Dr. Arfan Jaffar
  2. 2. 2 A Note About Grey Levels So far when we have spoken about image grey level values we have said they are in the range [0, 255] – Where 0 is black and 255 is white There is no reason why we have to use this range – The range [0,255] stems from display For many of the image processing operations in this lecture grey levels are assumed to be given in the range [0.0, 1.0]
  3. 3. 3 Image Histograms
  4. 4. 4 Image Histograms The histogram of an image shows us the distribution of grey levels in the image Massively useful in image processing, especially in segmentation Grey Levels Frequencies
  5. 5. 5 Histogram Examples (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  6. 6. 6 Histogram Examples (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  7. 7. 7 Histogram Examples (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  8. 8. 8 Histogram Examples (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  9. 9. 9 Histogram Examples (cont…) Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  10. 10. 10 Histogram Examples (cont…) A selection of images and their histograms Notice the relationships between the images and their histograms Note that the high contrast image has the most evenly spaced histogram Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  11. 11. 11 Contrast Stretching through Histogram C If rmax and rmin are the maximum and minimum gray level of the input image and L is the total gray levels of output image The transformation function for contrast stretching will be
  12. 12. 12 Histogram Equalization
  13. 13. 13 Histogram Equalization
  14. 14. 14 Background (Probability Distribution)
  15. 15. 15 Histogram Equalization
  16. 16. 16 Histogram Equalization
  17. 17. 17 Histogram Equalization
  18. 18. 18 Histogram Equalization
  19. 19. 19 Histogram Equalisation(Summary) Spreading out the frequencies in an image (or equalising the image) is a simple way to improve dark or washed out images The formula for histogram equalisation is given where – rk: input intensity – sk: processed intensity – k: the intensity range (e.g 0.0 – 1.0) – nj: the frequency of intensity j – n: the sum of all frequencies ) ( k k r T s     k j j r r p 1 ) (    k j j n n 1
  20. 20. 20 Example
  21. 21. 21 Example: cdf
  22. 22. 22 Example Notice that the minimum value (52) is now 0 and the maximum value (154) is now 255. Initial Image Image After Equalization
  23. 23. 23 Example
  24. 24. 24 Histogram Equalization-Examples
  25. 25. 25 Histogram Equalization-Examples
  26. 26. 26 Histogram Equalization-Examples
  27. 27. 27 Histogram Equalization-Examples
  28. 28. 28 Equalisation Transformation Function Images taken from Gonzalez & Woods, Digital Image Processing (2002)
  29. 29. 29 Histogram Equalization-Examples
  30. 30. 30 Histogram Equalization-Examples
  31. 31. 31 Histogram Equalization-Examples
  32. 32. 32 Histogram Equalization-Examples
  33. 33. 33 Histogram Specification/Matching
  34. 34. 34 Histogram Specification/Matching
  35. 35. 35 Histogram Specification/Matching
  36. 36. 36 Histogram Specification/Matching
  37. 37. 37 Histogram Matching Example
  38. 38. 38 Histogram Matching Example(continued)
  39. 39. 39 Histogram Matching Example (continued)
  40. 40. 40 Standard dialog box for retrieving files in Matlab uigetfile uigetfile('FilterSpec') uigetfile('FilterSpec','DialogTitle') uigetfile('FilterSpec','DialogTitle','DefaultName') uigetfile(...,'Location',[x y]) uigetfile(...,'MultiSelect',selectmode) [FileName,PathName] = uigetfile(...) [FileName,PathName,FilterIndex] = uigetfile(...)
  41. 41. 41 Pre-defined Dialog Boxes

×