public class Difference extends java.lang.Object implements IApplyInPlace
The difference filter takes two images (source and overlay images) of the same size and pixel format and produces an image, where each pixel equals to absolute difference between corresponding pixels from provided images.
| Constructor and Description |
|---|
Difference()
Initialize a new instance of the Difference class.
|
Difference(FastBitmap overlayImage)
Initialize a new instance of the Difference class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyInPlace(FastBitmap sourceImage)
Apply filter to an image.
|
void |
setOverlayImage(FastBitmap overlayImage)
Sets an overlay image, which will be used as the second image required to process source image.
|
public Difference()
public Difference(FastBitmap overlayImage)
overlayImage - Overlay image.public void setOverlayImage(FastBitmap overlayImage)
overlayImage - Overlay image.public void applyInPlace(FastBitmap sourceImage)
IApplyInPlaceapplyInPlace in interface IApplyInPlacesourceImage - Image to be processed.