comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: what is an efficient lossless compression way to store a gray-scale image
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: what is an efficient lossless compression way to store a gray-scale image [message #36120] Tue, 26 August 2003 09:35
Wolfgang Funk is currently offline  Wolfgang Funk
Messages: 3
Registered: June 2003
Junior Member
Hi Julia,

the PNG format provides a lossless compression scheme (in fact it was
defined as a replacement for GIF).

Depending on your IDL version the WRITE_PNG routine is available (as far
as I remember PNG support starts with version 5.3). I'm running IDL 5.4
and WRITE_PNG compresses the good old "Lenna" image (512 by 512 grey
scale) from 256K into a 146K PNG file.

Hope it helps.

Wolfgang

> Hi, there,
>
> For a gray-scale image, I haven't found a good way to store it yet. It
> seems that there is no way to store gray-scale images in IDL
> efficiently. If so, that will be too bad, because all the satellite
> images we processed are very large and occupy a lot of space.
>
> I tried 'tiff' format with Packbits compression, but it does not help
> for gray-scale image. Sometimes the file size of the compressed image
> is even larger than the original raw data!!!
>
> Can anyone give me some hint? Thank you very much!
>
> Regards,
>
> Julia
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: convert very large string to numeric
Next Topic: Sky map in idl

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 16:01:47 PDT 2025

Total time taken to generate the page: 1.35962 seconds