Class SuppliedImageMask

    • Field Detail

      • m_Mask

        protected StorageName m_Mask
        the image in internal storage.
      • m_Down

        protected boolean m_Down
        If true, then pixels <= threshold are not masked and the others' alpha channel are set to 0 (made transparent).
      • m_Threshold

        protected int m_Threshold
        Threshold value used for binarization, specify -1 to automatically determine a threshold.
      • m_MaskMatrix

        protected int[][] m_MaskMatrix
        the mask image.
    • Constructor Detail

      • SuppliedImageMask

        public SuppliedImageMask()
    • Method Detail

      • getMask

        public StorageName getMask()
        Gets the storage name of the mask image.
        Returns:
        the storage name
      • setMask

        public void setMask​(StorageName value)
        Sets storage name of the mask image.
        Parameters:
        value - the storage name
      • maskTipText

        public String maskTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getDown

        public boolean getDown()
        Get whether mask is applied below or above the threshold.
        Returns:
        threshold direction
      • setDown

        public void setDown​(boolean value)
        Set whether mask is applied below or above the threshold.
        Parameters:
        value - threshold direction
      • downTipText

        public String downTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getThreshold

        public int getThreshold()
        Get the manual threshold value.
        Returns:
        manual threshold value
      • setThreshold

        public void setThreshold​(int value)
        Set the manual threshold value.
        Parameters:
        value - manual threshold value
      • thresholdTipText

        public String thresholdTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • initMask

        protected void initMask()
        Initializes the mask if necessary.