Class BlueChannelImageHandler

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

    public class BlueChannelImageHandler
    extends AbstractContentHandler
    implements ColorProviderHandler
    Interprets the values in the blue channel as color indices, corresponding to colors generated by the color provider.
    Supported image types: bmp,dcx,gif,hdr,icns,ico,jpg,pcx,png,pnm,psd,tif,tiff,wbmp,xbm,xpm

    -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.ApacheCommonsImageReader
     
    -color-provider <adams.gui.visualization.core.ColorProvider> (property: colorProvider)
        The color provider to use for the blue channel indices.
        default: adams.gui.visualization.core.DefaultColorProvider
     
    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

      • BlueChannelImageHandler

        public BlueChannelImageHandler()
    • 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)