pgm image lossless compression

12 visualizzazioni (ultimi 30 giorni)
Varsha Nataraj
Varsha Nataraj il 11 Gen 2021
Risposto: Steve Eddins il 11 Gen 2021
I need a suggestion of algorithm can be used to compress pgm images and retrive it back lossless

Risposte (1)

Steve Eddins
Steve Eddins il 11 Gen 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');

Community Treasure Hunt

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

Start Hunting!

Translated by