ImgAddMul

Top  Previous  Next

Prototype

 

ImgAddMul(intDestinationImageHandle,intSourceImageHandle,intNormalizer)

 

Description

 

Copies the source image into the destination image, multiplying the source image and dividing 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 divisor after multiplication of source and dest pixels to avoid overflow.

 

Returned value

 

None.

 

Example

 

// Duplicate original image

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

// Apply mean filter on duplicate

MeanFilter(NewImage);

// Multiply filtered image by original one

ImgAddMul(_CurrentImage, NewImage, 255);

// Delete duplicated image

ImgDelete(NewImage);