Convert the image to gray


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

109_1dbf5292-3000-4f8d-b102-faf0f39aef5d.png

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: Convert the image to gray
Reference No:- TGS01462866

Expected delivery within 24 Hours