ImageEn, unit iexBitmaps

TIOParams.TIFF_Normalize32fImages

TIOParams.TIFF_Normalize32fImages


Declaration

property TIFF_Normalize32fImages: boolean;


Description

If true the TIFF decoder normalizes 32 bit floating point images (reduces range to 0.0 up to 1.0).

Note:
Images without normalization cannot be displayed. They are used only for special purposes, such as storing elevation data for GIS files. For display and image processing methods, images of pixel format ie32f should be in the range 0..1. This option allows images that are outside this valid range.
If you are using a TIEMultiBitmap or TImageEnMView, you can use DuplicateCompressionInfo to propogate the parameter to all frames

Default: true


Example

ImageEnView1.IO.NativePixelFormat := true;
ImageEnView1.IO.Params.TIFF_Normalize32fImages := false;
ImageEnView1.IO.LoadFromFileTIFF( 'D:\GIS.tiff' );
for x := 0 to ImageEnView1.IEBitmap.Width - 1 do
  for y := 0 to ImageEnView1.IEBitmap.Height - 1 do
  begin
    Pixel := ImageEnView1.IEBitmap.Pixels_ie32f[x, y];
    ListBox1.Items.Add( 'Pixel: '+ FloatToStr( Pixel ));
  end;