Catalano.Imaging.Filters
Class Difference
- java.lang.Object
-
- Catalano.Imaging.Filters.Difference
-
- All Implemented Interfaces:
- IApplyInPlace
public class Difference extends java.lang.Object implements IApplyInPlace
Difference filter - get the difference between overlay and source images.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.
- Supported types: Grayscale, RGB.
- Coordinate System: Matrix.
-
-
Constructor Summary
Constructors Constructor and Description Difference()Initialize a new instance of the Difference class.Difference(FastBitmap overlayImage)Initialize a new instance of the Difference class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap sourceImage)Apply filter to an image.voidsetOverlayImage(FastBitmap overlayImage)Sets an overlay image, which will be used as the second image required to process source image.
-
-
-
Constructor Detail
-
Difference
public Difference()
Initialize a new instance of the Difference class.
-
Difference
public Difference(FastBitmap overlayImage)
Initialize a new instance of the Difference class.- Parameters:
overlayImage- Overlay image.
-
-
Method Detail
-
setOverlayImage
public void setOverlayImage(FastBitmap overlayImage)
Sets an overlay image, which will be used as the second image required to process source image. See documentation of particular inherited class for information about overlay image purpose.- Parameters:
overlayImage- Overlay image.
-
applyInPlace
public void applyInPlace(FastBitmap sourceImage)
Description copied from interface:IApplyInPlaceApply filter to an image.- Specified by:
applyInPlacein interfaceIApplyInPlace- Parameters:
sourceImage- Image to be processed.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG