Documentation of 'Catalano.Imaging.Filters.Morph' Java class
Morph
Catalano.Imaging.Filters

Class 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
      void applyInPlace(FastBitmap sourceImage)
      Apply filter to an image.
      double getSourcePercent()
      Percent of source image to keep, [0, 1].
      void setOverlayImage(FastBitmap overlayImage)
      Sets an overlay image, which will be used as the second image required to process source image.
      void setSourcePercent(double sourcePercent)
      Percent of source image to keep, [0, 1].
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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: IApplyInPlace
        Apply filter to an image.
        Specified by:
        applyInPlace in interface IApplyInPlace
        Parameters:
        sourceImage - Image to be processed.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.