Class TrimapImageHandler

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, SizeOfHandler, ContentHandler, ColorProviderHandler, Serializable

    public class TrimapImageHandler
    extends AbstractContentHandler
    implements ColorProviderHandler
    Displays the following image types as trimaps: jpg,tif,tiff,bmp,gif,png,wbmp,jpeg
    If VGG XML annotation file with the same name exists, then an object overlay is added.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -reader <adams.data.io.input.AbstractImageReader> (property: reader)
        The image reader to use.
        default: adams.data.io.input.JAIImageReader
     
    -color-provider <adams.gui.visualization.core.ColorProvider> (property: colorProvider)
        The color provider to use for coloring in the grayscale/indexed image.
        default: adams.gui.visualization.core.CustomColorProvider -color #ffff00 -color #0000ff -color #ff0000
     
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Reader

        protected ImageReader m_Reader
        the image reader to use.
      • m_ColorProvider

        protected ColorProvider m_ColorProvider
        the color provider for generating the colors.
    • Constructor Detail

      • TrimapImageHandler

        public TrimapImageHandler()
    • Method Detail

      • getDefaultReader

        protected ImageReader getDefaultReader()
        Returns the default image reader.
        Returns:
        the default
      • setReader

        public void setReader​(ImageReader value)
        Sets the image reader to use.
        Parameters:
        value - the image reader
      • getReader

        public ImageReader getReader()
        Returns the imag reader to use.
        Returns:
        the image reader
      • readerTipText

        public String readerTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • getDefaultColorProvider

        protected ColorProvider getDefaultColorProvider()
        Returns the default color provider.
        Returns:
        the default
      • colorProviderTipText

        public String colorProviderTipText()
        Returns the tip text for this property.
        Specified by:
        colorProviderTipText in interface ColorProviderHandler
        Returns:
        tip text for this property suitable for displaying in the gui
      • getExtensions

        public String[] getExtensions()
        Returns the list of extensions (without dot) that this handler can take care of.
        Specified by:
        getExtensions in interface ContentHandler
        Returns:
        the list of extensions (no dot)