ShiftMinimumToZero method (ILEADRasterProcess)

Visual Basic example

Visual C++ example

 

Syntax

short ShiftMinimumToZero(ILEADRaster * pRaster);

Overview

Refer to Examining and Altering Bitmaps.

Remarks

(Raster Pro and above only) Converts the signed bitmap to an unsigned bitmap by increasing or shifting the bitmap's intensity values, so the lowest intensity value (the most negative value) will be shifted to zero.

This method is similar to the ConvertSignedToUnsigned method, except that the ShiftMinimumToZero method updates the ShiftAmount property with the value by which the data was shifted.

ShiftMinimumToZero and ShiftZeroToNegative methods are most often used in concert with one or more image processing or analysis methods. ShiftMinimumToZero converts signed data to unsigned data, in preparation for some image processing or analysis. (Most image processing methods work only on unsigned data.) After the image processing or analysis is performed, ShiftZeroToNegative converts the unsigned data back to signed data.

This method doesn’t support 8-bit images.

This method supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.

This method supports signed data images.

See Also

Elements:

ShiftAmount property, ConvertUnsignedToSigned Method, ConvertSignedToUnsigned method, ShiftZeroToNegative method

Topics:

Raster Images: Modifying Intensity Values