code in matlab!
Exercise: Recreate a figure similar to the one shown here using a grayscale image of your choice. 128 256 512 1024 Show transcribed image text Exercise: Recreate a figure similar to the one shown here using a grayscale image of your choice. 128 256 512 1024
Answer
we can simply use imresize function from matlab for thispurpose.
code:
x=imread(“file-path”); % put file location path inside thisfunction which reads the image%
y=imresize(x,0.5); %resizes the image to half%
y1=imresize(x,0.25); %resizes the
OR
OR