0% found this document useful (0 votes)
107 views12 pages

Local Enhancement Aim::: Matlab R2009a

The document provides instructions for performing various image processing techniques using MATLAB. It details 13 different processes: 1) local enhancement using histogram equalization and mean variance, 2) image zooming, 3) image shrinking, 4) image smoothing using mean and median, 5) image sharpening using different filters, 6) high boost filtering, 7) removing salt and pepper noise using median filtering, 8) image transforms using Fourier, discrete cosine and fast Fourier transforms, 9) image segmentation by thresholding. For each technique, it lists the aim, software used, algorithm steps and sample outputs.

Uploaded by

Yamini Praveen
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
107 views12 pages

Local Enhancement Aim::: Matlab R2009a

The document provides instructions for performing various image processing techniques using MATLAB. It details 13 different processes: 1) local enhancement using histogram equalization and mean variance, 2) image zooming, 3) image shrinking, 4) image smoothing using mean and median, 5) image sharpening using different filters, 6) high boost filtering, 7) removing salt and pepper noise using median filtering, 8) image transforms using Fourier, discrete cosine and fast Fourier transforms, 9) image segmentation by thresholding. For each technique, it lists the aim, software used, algorithm steps and sample outputs.

Uploaded by

Yamini Praveen
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Digital image processing manual

5. Local Enhancement Aim: To perform local histogram equalization using local histogram equalization and Mean
variance methods to given image.

Software used: Matlab R2009a Algorithm:


1. Read the image. 2. Convert the color image to gray scale. 3. Get the specified portion in the image using random filter. 4. Perform local enhancement using either mean operation or the histogram equalization operation.
5. Display the local enhanced image along with the original.

Output:
original image

local enhancement using mean variance method

Digital image processing manual

original image

local enhancement of image

Result: Thus the local enhanced image using local histogram equalization method and mean
variance method is obtained.

Digital image processing manual

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

Result: Thus the zoomed image is obtained.

Digital image processing manual

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

Digital image processing manual

shrinken image

Result: Thus the image has been shrinked.

Digital image processing manual

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

Using mean method

Using median method

Result: Hence the image has been smoothened by using both mean method and median
method.

Digital image processing manual

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

using Prewitt Mask

using Robert Mask

using Sobel Mask

Result: Hence the image has been sharpened using various masks.

Digital image processing manual

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

High boost filtered Image

Result: Hence a high boost filtered image is obtained.

Digital image processing manual

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

removal of noise using mean filter

removal of noise using median filter

Result: Hence the removal of salt & pepper is done using mean and median filter.

Digital image processing manual

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

Logarithmic Scaled Fourier Spectrum

10

Digital image processing manual

Original image

Discrete Cosine spectrum

Logbrithmic Scbled Discrete Cosine Spectrum

Result: Image transform is performed using MATLAB.

11

Digital image processing manual

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

Result: Image Segmentation is performed using MATLAB.

12

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy