pgm image lossless compression

I need a suggestion of algorithm can be used to compress pgm images and retrive it back lossless

Réponses (1)

Steve Eddins
Steve Eddins le 11 Jan 2021

0 votes

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');

Catégories

En savoir plus sur Denoising and Compression dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by