Write a Matlab code to read an image reassign the gray scale

Write a Matlab code to read an image, re-assign the gray scale values, and display the output. Notice, that gray scale images are assigned gray values in the range of [0,255]. Re-assign the input images to [255, 0]. Write your comments and/or analysis on the results. Explain your code, that is give a flow chart and/or pseudo code. Choose your own image.

Solution

pseudo code

load image to array A

B=255-A; this gives required change

suppose image A have gray scale values 255 120

When we subtract from 255 they will become 0 and 135

Matlab code here

--------------------------------------

A=imread(\'image title\');

B=255-A;

imshow(B)

Write a Matlab code to read an image, re-assign the gray scale values, and display the output. Notice, that gray scale images are assigned gray values in the ra

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site