How to perform jpeg encoding on color image?

Is JPEG encoding and JPEG compression are same?? Is there any inbuilt code in matlab to perform JPEG encoding??

 Accepted Answer

JPEG Encoding is the process leading through to finding the DCT coefficients. Strictly speaking the encoding ends there. The compression part takes the coefficients and determines which ones can be neglected and represents the abbreviated coefficients in a data structure. A phase after that is writing the results into a structured file format; .jpg files are in JFIF format which include blocks of represented coefficients that are the JPEG blocks themselves.
There are several user-contributed JPEG Encoders in the File Exchange, including https://www.mathworks.com/matlabcentral/fileexchange/10476-jpeg-codec

2 Comments

Is it possible to do JPEG compression in a color image without gray-scale or binary conversion?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!