Local Enhancement Aim::: Matlab R2009a
Local Enhancement Aim::: Matlab R2009a
5. Local Enhancement Aim: To perform local histogram equalization using local histogram equalization and Mean
variance methods to given image.
Output:
original image
original image
Result: Thus the local enhanced image using local histogram equalization method and mean
variance method is obtained.
6. Image Zooming Aim: To obtain zoomed image ,i.e, stretched image. Software used: MATLAB R2009a Algorithm:
1. Read the image. 2. Convert the color image to gray scale. 3. Initialize the zoomed image matrix of size double the original image matrix with zeros 4. Perform pixel replication by copying the same pixel value to neighborhood pixels of zoomed image matrix. 5. Display the zoomed image with the original.
Output:
Zoomed image
7. Image Shrinking Aim: To obtain shrinkage image . Software used: MATLAB R2009a Algorithm:
1. Read the image. 2. Convert the color image to gray scale. 3. For every four neighborhood pixels of original image copy the value of fourth pixel to pixel at half of its position in the image shrinkage matrix thereby reducing the size to half. 4. Display the shrinkage image with the original.
Output:
original image
shrinken image
8. Image Smoothing Aim: To perform smoothing on an image. Software used: MATLAB version 7.0.1(R14) Algorithm:
1. Read the image. 2. Convert the color image to gray scale. 3. Using 2 methods we can perform image smoothing. 4. We can use either mean or median method to smoothen the image. 5. Display the smoothened image along with the original.
Output:
Original Image
Result: Hence the image has been smoothened by using both mean method and median
method.
9. Image Sharpening Aim: To perform image sharpening on an image. Software used: MATLAB version 7.0.1(R14) Algorithm:
1. Read the image. 2. Convert the colour image to gray scale. 3. Using 3 methods we can perform image smoothing. 4. We can use either Robert Sober and hpf methods for sharpening the image. 5. Display the sharpened image along with the original
Output:
Original image
using HPF
Result: Hence the image has been sharpened using various masks.
10.High Boost Filter Aim: To perform high boot filtering on an image. Software used: MATLAB version 7.0.1(R14) Algorithm:
1. Read the image. 2. Convert the colour image to gray scale. 3. Using a method we can perform high boot filtering. 4. Here we use masks to perform high boot filtering on the image using 2 functions namely hpf and boot masking. 5. Display the high boot image along with the original.
Output:
Original Image
11.REMOVING SALT AND PEPPER NOISE USING MEDIAN FILTER Aim: To remove salt and pepper noise in an image Software used: MATLAB version 7.0.1(R14) Algorithm:
1. Read the image. 2. Convert the color image to gray scale. 3. Consider sub-image (3x3 matrix) for each pixel (8 connected neighborhood),calculate the median of the sub-image and replace the pixel with this value. 4. Display the result de-noised image.
Output:
original image image with salt & pepper noise
Result: Hence the removal of salt & pepper is done using mean and median filter.
12.Image Transforms Aim: To perform image transforms on an image. Software used: MATLAB version 7.0.1(R14) Algorithm:
1. Read the image and convert it into gray image.
2. Calculate the cosine sine and fast fourier transform using the inbuilt functions. 3. Perform the inverse operation for images to get the restored image.
Output:
Original image Fourier spectrum
10
Original image
11
13.Image Segmentation Aim: To perform image segmentation on an image. Software used: MATLAB version 7.0.1(R14) Algorithm:
1. Read the input image and convert it into gray image. 2. Compute the histogram of the original image. 3. Observe the dense-part and set a threshold for the image(histogram level) 4. Test each and every pixels gray value. If is greater than the threshold, replace it with 255 (white level) else replace it with 0 (black level) gray level. 5. Display the final segmented image.
Outputs:
original image edge detected image convoluted image
Segment:1
Segment:2
Segment:3
Segment:4
Segment:5
Segment:6
Segment:7
Segment:8
Segment:9
12