ImgAddDiv

Top  Previous  Next

Prototype

 

ImgAddDiv(intDestinationImageHandle,intSourceImageHandle,intNormalizer)

 

Description

 

Copies the source image into the destination image, dividing by source image and multipliing by the constant normalizer value. Source and destination handles must refers to grayscale images that have the same size.

 

Parameters

 

intDestinationImageHandle: integer value corresponding to the destination image handle.

 

intSourceImageHandle: integer value corresponding to the source image handle.

 

intNormalizer: integer valure corrisponding to a constant to use as multiplier after division of source by dest pixels to avoid underflow.

 

Returned value

 

None.

 

Example

 

// Duplicate original image

NewImage:=ImgCopy(_CurrentImage,0,0,0,0);

// Apply mean filter on duplicate

MeanFilter(NewImage);

// Divide original image by filtered one

ImgAddDiv(_CurrentImage, NewImage, 255);

// Delete duplicated image

ImgDelete(NewImage);