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

MATLAB Image Processing Tasks

The document provides instructions for an image processing assignment in Matlab. It includes tasks like reading an image file, displaying the original and negative images, matrix multiplication, transforming pixel values, histogram equalization, image rotation with and without imrotate, locating corners of shapes with ginput, projective transformation using cp2tform and imtransform, and applying the transformation to checkerboard and facial images.
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)
71 views1 page

MATLAB Image Processing Tasks

The document provides instructions for an image processing assignment in Matlab. It includes tasks like reading an image file, displaying the original and negative images, matrix multiplication, transforming pixel values, histogram equalization, image rotation with and without imrotate, locating corners of shapes with ginput, projective transformation using cp2tform and imtransform, and applying the transformation to checkerboard and facial images.
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

ECW 705

Assignment 4

1. Read the image [Link]. It is a 291 240 pixel image. Display this gray scale image on your computer screen. What is the value of the brightest pixel in this image? What are its coordinates? What is the value of the darkest pixel in this image? What are its coordinates? Convert this image into its negative image by using the transformation. Display both the original and negative on the computer screen using the subplot command. Write the sequence of commands used in your notebook. 2. Find the matrix product and array product of the following matrices using Matlab. Write the commands in your notebook and also the result.

3. Transform the gray levels of the image using [Link] , the transformation Display both the original and transformed image on the computer screen using the subplot command. Write the sequence of commands used in your notebook. Using the command hist plot the histogram of the image [Link] and make a graph of the same in your notebook. Write the sequence of the commands used. Write a computer program to histogram equalize this image, plot the new histogram. Rotate the image [Link] by 300 using the imrotate command. Now, rotate the same image without using this command. Write the sequence of commands used in matlab in your notebook. Make a large square on a white background in mspaint. Read this image in matlab and locate the position of its corners using ginput command. Record your observations in your notebook. Now, do the same thing with a large rectangle. Make a checkered board pattern using I=checkerboard(5)command. Save this pattern as a bmp image. Locate each corner of this pattern using ginput command. Make a projective transformation function using the base points as (24, 21), (140, 20), ( 140 140) and (21 138), and the corresponding input points as (40, 43), (142, 18), (139, 137) and ( 39, 118) . Use cp2tform function to make the transformation and imtransform function to apply the transform on images. Apply this transform to the checkered generated image in the question above. Also apply this transform to [Link] image and report the result.

4.

5.

6.

7. 8.

Ver. 2.0

You might also like