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

Home » Public Forums » archive » Re: how to define size of image in common case
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: how to define size of image in common case [message #71659] Tue, 06 July 2010 04:16
jeanh is currently offline  jeanh
Messages: 79
Registered: November 2009
Member
On 06/07/2010 12:32 AM, skymaxwell@gmail.com wrote:
> how to define size of image (in bytes) in common case ?
>
> I use the following formula
>
> V=(image_size_x/pixel_size_x)*(image_size_y/pixel_size_y)*Nb ands*10E-6
>
> image_size_x, image_size_y - dimensions of image (in meters)
> pixel_size_x, pixel_size_y - spatial resolution (in meters)
>
> Unfortunately, for some images it's wrong - it doesn't match with file
> size.
> Why ?
>
> Thanks

Hi,
the formula is : number of pixels * weight of each pixels.
So, if the pixels are in Byte, each pixel is 8 bits, integers -> 16
bits, floats -> 32 bits etc

Also, some images have their header embedded... other formats use some
compression

Jean
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: how to define size of image in common case
Next Topic: How to exchange data in multi-top-level base widgets?

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

Current Time: Wed Oct 08 11:37:10 PDT 2025

Total time taken to generate the page: 0.00477 seconds