ImgAddSub |
Top Previous Next |
Prototype
ImgAddSub(intDestinationImageHandle,intSourceImageHandle,intNormalizer)
Description
Copies the source image into the destination image, subctrating the source image and adding 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 add after subcracting source pixels from 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); // Subtract filtered image from original one ImgAddSub(_CurrentImage, NewImage, 128); // Delete duplicated image ImgDelete(NewImage);
|