Histogrammajumder/DIP/classes/histproc.pdfAdaptive Histogram Stretching • Choose a neighborhood...

9
Histogram • Probability distribution of the different grays in an image

Transcript of Histogrammajumder/DIP/classes/histproc.pdfAdaptive Histogram Stretching • Choose a neighborhood...

Page 1: Histogrammajumder/DIP/classes/histproc.pdfAdaptive Histogram Stretching • Choose a neighborhood • Apply histogram equalization to the pixels in that window • Replace the center

Histogram

• Probability distribution of the different grays in an image

Page 2: Histogrammajumder/DIP/classes/histproc.pdfAdaptive Histogram Stretching • Choose a neighborhood • Apply histogram equalization to the pixels in that window • Replace the center

Contrast Enhancement

• Limited gray levels are used• Hence, low contrast• Enhance contrast

Page 3: Histogrammajumder/DIP/classes/histproc.pdfAdaptive Histogram Stretching • Choose a neighborhood • Apply histogram equalization to the pixels in that window • Replace the center

Histogram Stretching

• Monotonically increasing function between 0 and 1• c(0) = 0• c(1) = 1

Page 4: Histogrammajumder/DIP/classes/histproc.pdfAdaptive Histogram Stretching • Choose a neighborhood • Apply histogram equalization to the pixels in that window • Replace the center

Results

Page 5: Histogrammajumder/DIP/classes/histproc.pdfAdaptive Histogram Stretching • Choose a neighborhood • Apply histogram equalization to the pixels in that window • Replace the center

Results

Burn out effects

Page 6: Histogrammajumder/DIP/classes/histproc.pdfAdaptive Histogram Stretching • Choose a neighborhood • Apply histogram equalization to the pixels in that window • Replace the center

Adaptive Histogram Stretching• Choose a neighborhood• Apply histogram equalization to the

pixels in that window• Replace the center pixel with the

histogram equalized value• Do this for all pixels• Compute intensive• Leads to noise

Page 7: Histogrammajumder/DIP/classes/histproc.pdfAdaptive Histogram Stretching • Choose a neighborhood • Apply histogram equalization to the pixels in that window • Replace the center

ResultsOriginal Global

Adaptive (15x15) Adaptive (30x30)

Adaptive (75x75) Adaptive (150x1500)

Page 8: Histogrammajumder/DIP/classes/histproc.pdfAdaptive Histogram Stretching • Choose a neighborhood • Apply histogram equalization to the pixels in that window • Replace the center

Histogram Matching

Histogram 1 Histogram 2

x

y y

x’

Page 9: Histogrammajumder/DIP/classes/histproc.pdfAdaptive Histogram Stretching • Choose a neighborhood • Apply histogram equalization to the pixels in that window • Replace the center

Appearance Transfer