Prototype
ImgAddXor (intDestinationImageHandle,intSourceImageHandle)
Description
It copies the source image into destination image, overwriting its preceding content and applying logical "XOR" operation between each bit of source and of destination. Source and destination handles must refers to images that have the same size and same bits per pixel.
Parameters
intDestinationImageHandle: integer value corresponding to destination image handle.
intSourceImageHandle: integer value corresponding to source image handle.
Returned value
None.
Example
// =================================================
// This example shows pixels removed after despeckle
// =================================================
// Creates a copy of current image
DifferenceImage:= ImgCopy(_CurrentImage,0,0,0,0);
// Despeckle current image
ImgDespeckle(_CurrentImage);
// Copy current despeckled image in original image using "XOR" operation
ImgAddXor(DifferenceImage,_CurrentImage);
// Show the resulting image featuring changed pixels
ImgShow(DifferenceImage);
// Delete the image copy
ImgDelete(DifferenceImage);