Lecture-4 (Image Enhancement)
Lecture-4 (Image Enhancement)
Enhancement
Image Enhancement, - Bit-Place Slicing,
- Spatial domain, Histogram processing,
- Frequency domain. - dark image, bright image,
Basic Gray level transformation, low contrast.
- Image Negative, - histogram equalization,
- Log transformations, - histogram matching,
- Power-Law transformation, - histogram statistics for
Piecewise-linear transform image enhancement,
functions, - local enhancement.
- Contrast Stretching,
- Gray-level Slicing,
–where f (x, y) is the input image, g (x, y) is the processed image and T is an
operator on f, defined over some neighborhood of (x, y).
–Enhancement at any point in an image depends only on the gray level at that
point, technique in this category are refereed to as point processing.
For Example:
–While mask coefficient determine the nature of the process, such as
Image sharpening.
- Enhancement techniques also based on this type of approach often are
refereed to as mask processing or filtering.
@Copyrights: Digital Image Processing Organized by Dr. Ahmad Jalal (http://portals.au.edu.pk/imc/)
2. Basic Gray (intensity) Level Transformation
Spatial Domain Procedures. s= spatial transform
Gray level contains; r= gray level
- Brightness of a pixel.
- Lighting from black to white values from 0 (i.e, being black) to 255 (i.e, being
white) .
S = r 1/2.5 = r 0.4
@Copyrights: Digital Image Processing Organized by Dr. Ahmad Jalal (http://portals.au.edu.pk/imc/)
Example: Power-Law Transformation
where rmin and rmax denote the minimum and maximum gray levels in the
image.
For Example:
- 0 for the least significant bit
- 7 for the most significant bit
Aerial image
?
‘Image(Gamma=1)’
j=double(i);
k=double(i);
[row,col]=size(j);
T1=input('Enter the Lowest threshold value:');
T2=input('Enter the Highest threshold value:');
for x=1:row
for y=1:col
if((j(x,y)>T1) && (j(x,y)<T2)) Graylevel slicing with background Graylevel slicing without background
j(x,y)=i(x,y);
k(x,y)=255;
else
j(x,y)=0;
k(x,y)=0;
end
end
end
Histogram are the basis for numerous spatial domain processing techniques.
– Used effectively for image enhancement.
– Also, useful in other image processing applications, such as image
compression and segmentation.
Histogram h(rk ) nk
rk is the k th intensity value
nk is the number of pixels in the image with intensity rk
nk
Normalized histogram p( rk )
MN
nk : the number of pixels in the image of
size M N with intensity rk
1) Histogram Equalization:
– We assume that r has been normalized to the interval [0 ,1] with
r=0 representing black and r=1 representing white.
2) Histogram Matching:
2.1 Histogram Statistics for Image Enhancement:-
-Statistical parameters obtainable directly from the histogram.
3) Local Enhancement:
Advantages:
– repeatedly computing the histogram over all pixels in the
neighborhood region each time the region is moved one pixel
location.
– Improve efficiency of an image.