Login  Register

Re: saving binary as 1 bit-per-pixel tif

Posted by Wayne Rasband on Sep 07, 2009; 3:27pm
URL: http://imagej.273.s1.nabble.com/saving-binary-as-1-bit-per-pixel-tif-tp3691279p3691282.html

On Sep 7, 2009, at 6:03 AM, Jan Eglinger wrote:

> Hi,
>
> Gluender wrote:
>> Just curious:
>>
>> Where did you find the command: "File>Save As>Compressed TIFF ..."
> I just noticed that the function is residing in the ImageIO plugin by
> Jerek Sacha:
>
> http://ij-plugins.sourceforge.net/plugins/imageio/
>
> Just filed the bug on the sourceforge page as well..
>
>
>>> Is there any other memory-saving way of saving big binary images?
>>
>> AFAIK ImageJ uses minimum 8bit per pixel.
> I was just wondering if there is a better way to save huge binary  
> masks
> than to waste 7/8 of the disk space.
> During processing, it doesn't make any difference, since IJ is using
> 8bit per pixel minimum, that's right.

Use File>Save As ZIP. As a test, I saved a 4000x4000 binary mask in  
ZIP format and it was 300 times smaller (52K) compared to saving in  
uncompressed TIFF format (15.3MB). You can open ZIP files created by  
File>Save As>ZIP using File>Open or by drag and drop.

-wayne