Given the image data "cruiseorg.tiff", perform JPEG compression by completing the following steps:
a. Convert the image to gray scale.
b. Write a MATLAB program for encoding with the following features: (1) divide the image into 8× 8 blocks; (2) transform each block using the discrete-cosine transform; (3) scale and round DCT coefficients with the standard quality factor. Note that using lossless compression with the quantized DCT coefficients is omitted here for a simple simulation.
c. Continue and write a MATLAB program for decoding with the following features: (1) invert the scaling process for quantized DCT coefficients; (2) perform the inverse DCT for each 8× 8 image block; (3) recover the image.
d. Run the developed MATLAB program to examine the image quality using
