Question: WARNING: It is forbidden to use array operations that perform complete 2 D array processing in one command during our course! For any 5 1
WARNING: It is forbidden to use array operations that perform complete D array processing in
one command during our course!
For any grayscale digital image in our Images database example images are: cameraman, house,
jetplane, lake, livingroom, walkbridge do the following:
Write a MATLAB program to change downsample the spatial resolution to and
pixels. Save these three images as images. To do this, you will replicate pixels upsample to reach
the desired size; ie perform nearestneighbor interpolation. Do not change the grayscale resolution.
Note that you must write MATLAB code that explicitly scans through the D array of an image in the
and directions, per the example main.m file. Also, to read in a tifformat, such as "walkbridge.tif", you
will need the following commands:
imreadwalkbridgetif'; Read the image into f
::; Get the first "layer" of the tif image
Create an interpolated image from your image of part before you upsampled it to
using either bilinear, bicubic, or inversedistance interpolation, as discussed in G&W Sect.
and the Project Material document "ProjInterpolation.pdf
Write a program to change the graylevel quantization of the original image by reducing the number
of bits per pixel from to and bitspixel Save these new images. Be sure that the gray
levels used in the new images span the bit range! For example, for the new bitspixel image, the image
pixels should use the gray levels dots
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
