Catalano.Imaging.Filters
Class Xor
- java.lang.Object
-
- Catalano.Imaging.Filters.Xor
-
- All Implemented Interfaces:
- IApplyInPlace
public class Xor extends java.lang.Object implements IApplyInPlace
Xor filter - Performs logical operator "xor" between two images.
Logical operators are generally derived from Boolean algebra.
Truth-tables for XOR:
A B | Q
---------
0 0 | 0
0 1 | 1
1 0 | 1
1 1 | 0
-
-
Constructor Summary
Constructors Constructor and Description Xor()Initialize a new instance of the Xor class.Xor(FastBitmap overlayImage)Initialize a new instance of the Xor class with defined an overlay image.
-
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)Set Overlay image.
-
-
-
Constructor Detail
-
Xor
public Xor()
Initialize a new instance of the Xor class.
-
Xor
public Xor(FastBitmap overlayImage)
Initialize a new instance of the Xor class with defined an overlay image.- Parameters:
overlayImage- Overlay image.
-
-
Method Detail
-
setOverlayImage
public void setOverlayImage(FastBitmap overlayImage)
Set Overlay image.- 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