0% found this document useful (0 votes)
27 views1 page

AIM: To Display The Gradient of An Image

This program loads an image file, calculates the gradient of the pixel values to highlight edges, and displays the original image and gradient image in separate subplots for comparison. The gradient is calculated by applying an operator to the double converted pixel values of the original image, then the results are displayed side by side with titles to identify each image.

Uploaded by

xyzking
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 DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views1 page

AIM: To Display The Gradient of An Image

This program loads an image file, calculates the gradient of the pixel values to highlight edges, and displays the original image and gradient image in separate subplots for comparison. The gradient is calculated by applying an operator to the double converted pixel values of the original image, then the results are displayed side by side with titles to identify each image.

Uploaded by

xyzking
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 DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

AIM: To display the gradient of an image Program clear all; a=imread('C:\Documents and Settings\student.E1-1LA3-14\Desktop\t.

png'); subplot(3,3,1); imshow(a),title('original image'); y=gradient(double(a)); subplot(3,3,2); imshow(y),title('gradient'); Output

You might also like