Package adams.data.io.input
Class BlueChannelImageSegmentationReader
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,FileFormatHandler,LenientModeSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,ImageSegmentationAnnotationReader,ImageSegmentationAnnotationReaderWithLayerNames,Serializable
public class BlueChannelImageSegmentationReader extends AbstractCustomPNGAnnotationImageSegmentationReader
The layers are stored in the blue channel, with 0 being the background.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.data.io.input.AbstractCustomPNGAnnotationImageSegmentationReader
m_Reader
-
Fields inherited from class adams.data.io.input.AbstractPNGAnnotationImageSegmentationReader
m_LayerNames, m_Lenient, m_SkipFirstLayer
-
Fields inherited from class adams.data.io.input.AbstractImageSegmentationAnnotationReader
m_AlternativeAnnotationDir, m_UseAlternativeAnnotationDir
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description BlueChannelImageSegmentationReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ImageSegmentationContainerdoReadLayers(PlaceholderFile file)Reads the image segmentation annotations.ImageSegmentationAnnotationWritergetCorrespondingWriter()Returns, if available, the corresponding writer.StringgetFormatDescription()Returns a string describing the format (used in the file chooser).StringglobalInfo()Returns a string describing the object.-
Methods inherited from class adams.data.io.input.AbstractCustomPNGAnnotationImageSegmentationReader
defineOptions, getDefaultReader, getReader, readerTipText, readPNG, setReader
-
Methods inherited from class adams.data.io.input.AbstractPNGAnnotationImageSegmentationReader
check, doRead, getDefaultFormatExtension, getFormatExtensions, getLayerNames, getLenient, getSkipFirstLayer, layerNamesTipText, lenientTipText, locatePNG, newContainer, setLayerNames, setLenient, setSkipFirstLayer, skipFirstLayerTipText
-
Methods inherited from class adams.data.io.input.AbstractImageSegmentationAnnotationReader
alternativeAnnotationDirTipText, getAlternativeAnnotationDir, getUseAlternativeAnnotationDir, read, setAlternativeAnnotationDir, setUseAlternativeAnnotationDir, useAlternativeAnnotationDirTipText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.data.io.input.ImageSegmentationAnnotationReader
getAlternativeAnnotationDir, getUseAlternativeAnnotationDir, read, setAlternativeAnnotationDir, setUseAlternativeAnnotationDir
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
getCorrespondingWriter
public ImageSegmentationAnnotationWriter getCorrespondingWriter()
Returns, if available, the corresponding writer.- Specified by:
getCorrespondingWriterin interfaceImageSegmentationAnnotationReader- Specified by:
getCorrespondingWriterin classAbstractImageSegmentationAnnotationReader- Returns:
- the writer, null if none available
-
getFormatDescription
public String getFormatDescription()
Returns a string describing the format (used in the file chooser).- Returns:
- a description suitable for displaying in the file chooser
-
doReadLayers
protected ImageSegmentationContainer doReadLayers(PlaceholderFile file)
Reads the image segmentation annotations.- Specified by:
doReadLayersin classAbstractPNGAnnotationImageSegmentationReader- Parameters:
file- the file to read from- Returns:
- the annotations
-
-