ImgAddSum |
Top Previous Next |
Prototype
ImgAddSum(intDestinationImageHandle,intSourceImageHandle,intNormalizer)
Description
Copies the source image into the destination image, summing the source image and subtracting 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 subctract after summing pixels from source and from dest to avoid overflow.
Returned value
None.
Example
// Duplicate original image NewImage:=ImgCopy(_CurrentImage,0,0,0,0); // Apply mean filter on duplicate MeanFilter(NewImage); // Sum filtered image to original one ImgAddSum(_CurrentImage, NewImage, 128); // Delete duplicated image ImgDelete(NewImage); |