MATLAB Answers

pgm image lossless compression

15 views (last 30 days)
Varsha Nataraj
Varsha Nataraj on 11 Jan 2021
Answered: Steve Eddins on 11 Jan 2021
I need a suggestion of algorithm can be used to compress pgm images and retrive it back lossless

  0 Comments

Sign in to comment.

Answers (1)

Steve Eddins
Steve Eddins on 11 Jan 2021
Write the image to a PNG file. The PNG format uses lossless compression.
imwrite(A,'myfile.png')
Read it back in using imread.
A_retrieved = imread('myfile.png');

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!