binarized stack file size?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

binarized stack file size?

Dan Siegal-Gaskins
Hello all,

I have an 800+ MB TIFF stack, and when I convert it to binary and save, the
file size remains 800+ MB.  I would have expected the binary file to be
considerably smaller than the stack of 8-bit TIFFs.  Is there something that
I'm doing wrong, or is it my lack of understanding of different file types?

Many thanks,
Dan
Reply | Threaded
Open this post in threaded view
|

Re: binarized stack file size?

dscho
Hi,

On Fri, 25 May 2007, Dan Siegal-Gaskins wrote:

> I have an 800+ MB TIFF stack, and when I convert it to binary and save,
> the file size remains 800+ MB.  I would have expected the binary file to
> be considerably smaller than the stack of 8-bit TIFFs.  Is there
> something that I'm doing wrong, or is it my lack of understanding of
> different file types?

You are doing nothing wrong, but it is expected. IIRC gray-scale (8-bit)
images are the smallest images Java can work with.

Therefore, "binarize" means that the pixels can only take on values 0
_or_ 255.

Thus, the image writers do not really take advantage of binarized images.

Hth,
Dscho
Reply | Threaded
Open this post in threaded view
|

Re: binarized stack file size?

Michael Schmid
In reply to this post by Dan Siegal-Gaskins
Hi Dan,

in ImageJ, binary files are simply 8-bit files that have only
two levels, 0 and 255. You can save disk space if you save
the stack as zip.

Michael
________________________________________________________________

On 25 May 2007, at 18:55, Dan Siegal-Gaskins wrote:

> Hello all,
>
> I have an 800+ MB TIFF stack, and when I convert it to binary and  
> save, the
> file size remains 800+ MB.  I would have expected the binary file  
> to be
> considerably smaller than the stack of 8-bit TIFFs.  Is there  
> something that
> I'm doing wrong, or is it my lack of understanding of different  
> file types?
>
> Many thanks,
> Dan
Reply | Threaded
Open this post in threaded view
|

Re: binarized stack file size?

Harry Parker
In reply to this post by Dan Siegal-Gaskins
Hi Dan,

Although the TIFF specification includes a binary variant, ImageJ does not support it.
Notice that even after you convert your image to binary, it still says "8-bit" at the top of the image.

However, if you save it as "ZIP" it will be much smaller than the zip file of the original image.
ImageJ can re-open such zipped files directly.
 
--  
Harry Parker  
Senior Systems Engineer  
Digital Imaging Systems, Inc.

----- Original Message ----
From: Dan Siegal-Gaskins <[hidden email]>
To: [hidden email]
Sent: Friday, May 25, 2007 12:55:21 PM
Subject: binarized stack file size?

Hello all,

I have an 800+ MB TIFF stack, and when I convert it to binary and save, the
file size remains 800+ MB.  I would have expected the binary file to be
considerably smaller than the stack of 8-bit TIFFs.  Is there something that
I'm doing wrong, or is it my lack of understanding of different file types?

Many thanks,
Dan





       
____________________________________________________________________________________Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.
http://new.toolbar.yahoo.com/toolbar/features/norton/index.php