compressing a image
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have an image and i want to compress that image in ratio
1:25
1:50
1:75
and decompress it ,please help how to do ,is there any codes available
2 Kommentare
Antworten (3)
Junaid
am 24 Apr. 2012
What you explained about ratio, you better use Run length Encoding (RLE). You can easily find many junk of codes for RLE to code and decode. Usually image pixel ranges from 0-255, then it would not be so length of code.
This might help you, as it compress and decompress too.
0 Kommentare
Walter Roberson
am 24 Apr. 2012
You will not be able to compress most images by 1:25 or better without losing information from the image.
For source code, refer to the FSF gzip program.
1 Kommentar
Jan
am 24 Apr. 2012
I think 1:25 is possible without loosing information: Using XOR(RAND()) and store the entropy bits in the cloud by sending them through /dev/null. Note that there is a program to compress your avatar to the character sequence "iii" with lossless decompression. Of course this algorithm cannot be applied to other pictures, but this was not the question.
Well, time for a coffee break.
Image Analyst
am 24 Apr. 2012
Why not use imwrite() to store as JPEG images with various quality/compression parameters?
0 Kommentare
Siehe auch
Kategorien
Mehr zu Denoising and Compression finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!