Re: Saving three 16 bit RGB values in 32 bits::



Wenny Macura wrote:
I have been fiddling with large 16 bit images for a while.
and have been trying to save the image allocation space on the disk.

The following algorithm is the result of the struggle :-)
Any comments ??

Saving three 16 bit RGB values in 32 bits:

The floating point mantissa is defined as 23 bit number.
To sum of three 16 bit numbers  requires at most 18 bits.

Since the image RGB values are independent of each other
and
....

Didn't look at your algorithm in detail but, in
general, RGB bands are correlated.  The degree
of correlation depends on the scene.  This is
well known in the land of remote sensing where
we routinely plot scatter plots (2-D histograms)
to show the shape of the correlation.

--
Regards,
Martin Leese
E-mail: please@xxxxxxxxxxxxxxxxxxxxxxxxxx
Web: http://members.tripod.com/martin_leese/
.