Question: Please help me with exercise 2, I urgently need help on image processing MATLAB Woman_darkhair 512x512 uint8 Exercise 1: Load the image rose1024.tif by using
Please help me with exercise 2, I urgently need help on image processing
MATLAB
Woman_darkhair
512x512 uint8
Exercise 1:
Load the image rose1024.tif by using the following commands:
>> f=imread('rose1024','tif'); %
>> whos %
Name Size Bytes Class
f 1024x1024 1048576 uint8 array
Grand total is 1048576 elements using 1048576 bytes
>> imagesc(f);colormap(gray) %
Enter a describing comment after each % symbol in the lines of code above.
This is a 1024 1024 intensity image of class uint8.
Now flip the image vertically using the statement
fp = f (end :-1 : 1, :);
Then obtain a section out of the original image, using the command
fc = f(257:768, 257:768);
We call this a cropped image.
Next, obtain a sub-sampled (decimated) image using the statement
fs = f(1:2:end, 1:2:end);
Finally, obtain a horizontal scan line through the middle of the original image, using the command
plot(f(512, :)).
Exercise 2:
Repeat the procedure of Exercise 1 using the 512 512 image woman_darkhair.tif.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
