Catalano.Imaging.Filters
Class Morph
- java.lang.Object
-
- Catalano.Imaging.Filters.Morph
-
- All Implemented Interfaces:
- IApplyInPlace
public class Morph extends java.lang.Object implements IApplyInPlace
Morph filter.
The filter combines two images by taking specified percent of pixels' intensities from source image and the rest from overlay image. For example, if the source percent value is set to 0.8, then each pixel of the result image equals to 0.8 * source + 0.2 * overlay, where source and overlay are corresponding pixels' values in source and overlay images.
-
-
Constructor Summary
Constructors Constructor and Description Morph()Initialize a new instance of the BottomHat class.Morph(FastBitmap overlayImage)Initialize a new instance of the BottomHat class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyInPlace(FastBitmap sourceImage)Apply filter to an image.doublegetSourcePercent()Percent of source image to keep, [0, 1].voidsetOverlayImage(FastBitmap overlayImage)Sets an overlay image, which will be used as the second image required to process source image.voidsetSourcePercent(double sourcePercent)Percent of source image to keep, [0, 1].
-
-
-
Constructor Detail
-
Morph
public Morph()
Initialize a new instance of the BottomHat class.
-
Morph
public Morph(FastBitmap overlayImage)
Initialize a new instance of the BottomHat 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.
-
getSourcePercent
public double getSourcePercent()
Percent of source image to keep, [0, 1].- Returns:
- Source percent.
-
setSourcePercent
public void setSourcePercent(double sourcePercent)
Percent of source image to keep, [0, 1].- Parameters:
sourcePercent- Source percent.
-
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