AddWeightedBitmaps method (ILEADRasterProcess)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short AddWeightedBitmaps (ILEADRaster* pRaster, long lFlag);

Overview

Refer to Removing Noise.

Remarks

Adds or averages the bitmaps in the BitmapList property according to their weight factors.

This method can be used to modify the brightness (with the add operations) or remove the noise (with the average operations). Typically, you would call this method for a series of images taken of the same object at short intervals.

If lFlag is BC_ADD, the method can be used to add several images of the same view to improve the lightness or brightness of the image. In this case, the Factor property is ignored.

If lFlag is BC_AVG, the function can be used to average several images. In this case, the Factor property is ignored.

If lFlag is BC_ADDWEIGHTED, the method can be used to obtain an image as the sum of several weighted images. Each bitmap in any position in the list has a corresponding weight factor in the same position in the Factor property. The real values are the weight factors divided by 100. For example if a weight factor is 131 its real value is 1.31. If Factor equals 0, each bitmap has the same weight factor of 100 and the result is the same as for BC_ADD.

If lFlag is BC_AVGWEIGHTED, the method can eliminate random noise by performing a weighted average. Each bitmap in any position in the list has a corresponding weight factor in the Factor array. The real values are the weight factors in the array divided by 100. The weighted sum will be divided by the sum of the weights. If the Factor property equals 0, each bitmap has the same weight factor of 100 and the result is the same as for BC_AVG.

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.

See Also

Elements:

AddBitmaps method, Factor property, FactorCount property

Topics:

Raster Images: Combining Images

 

Raster Images: Modifying Intensity Values

 

Changing Brightness and Contrast