File size of image is different an hard disk compared to image info in Fiji

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

File size of image is different an hard disk compared to image info in Fiji

Sebastian Rhode-4
Hi guys,

I have an OME-TIFF image where the Image Info says:

 BitsPerPixel = 16
 DimensionOrder = XYCZT
 IsInterleaved = false
 IsRGB = false
 LittleEndian = true
 PixelType = uint16
 Series 0 Name = null
 SizeC = 4
 SizeT = 1
 SizeX = 40
 SizeY = 40
 SizeZ = 60
Location = /home/.../Images/Beads.ome.tiff

------------------------------------------------------
(Fiji Is Just) ImageJ 2.0.0-rc-30/1.49s; Java 1.7.0_79 [64-bit]; Linux
3.19.0-18-generic; 42MB of 4809MB (<1%)

Title: Beads.ome.tiff
Width:  3.8788 microns (40)
Height:  3.8788 microns (40)
Depth:  15 microns (60)
*Size:  750K*
Resolution:  10.3125 pixels per micron
Voxel size: 0.0970x0.0970x0.25 micron^3
ID: -5
Bits per pixel: 16 (unsigned)
Display ranges
...

But when I look inside my file browser the shown file size is 95.3 MB,
which is hard for me to believe. What am I missing?

Sebi

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: File size of image is different an hard disk compared to image info in Fiji

Mark Hiner
Hi Sebastian,

>What am I missing?

The logic for computing size used here[1] just considers pixel size for
Width x Height x Stack count of pixels. So consider this field appears to
be more of an estimate of "minimum memory to store this pixel data".
Factors like metadata or false color LUTs will cause this estimate to be
different from file size on disk.

Hope that helps.

Best,
Mark



[1]
https://github.com/imagej/ImageJA/blob/v1.49t/src/main/java/ij/gui/ImageWindow.java#L343-L364

On Sun, May 31, 2015 at 4:37 AM, Sebastian Rhode <[hidden email]> wrote:

> Hi guys,
>
> I have an OME-TIFF image where the Image Info says:
>
>  BitsPerPixel = 16
>  DimensionOrder = XYCZT
>  IsInterleaved = false
>  IsRGB = false
>  LittleEndian = true
>  PixelType = uint16
>  Series 0 Name = null
>  SizeC = 4
>  SizeT = 1
>  SizeX = 40
>  SizeY = 40
>  SizeZ = 60
> Location = /home/.../Images/Beads.ome.tiff
>
> ------------------------------------------------------
> (Fiji Is Just) ImageJ 2.0.0-rc-30/1.49s; Java 1.7.0_79 [64-bit]; Linux
> 3.19.0-18-generic; 42MB of 4809MB (<1%)
>
> Title: Beads.ome.tiff
> Width:  3.8788 microns (40)
> Height:  3.8788 microns (40)
> Depth:  15 microns (60)
> *Size:  750K*
> Resolution:  10.3125 pixels per micron
> Voxel size: 0.0970x0.0970x0.25 micron^3
> ID: -5
> Bits per pixel: 16 (unsigned)
> Display ranges
> ...
>
> But when I look inside my file browser the shown file size is 95.3 MB,
> which is hard for me to believe. What am I missing?
>
> Sebi
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html