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.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 ImageSegmentationContainer
doReadLayers(PlaceholderFile file)
Reads the image segmentation annotations.ImageSegmentationAnnotationWriter
getCorrespondingWriter()
Returns, if available, the corresponding writer.String
getFormatDescription()
Returns a string describing the format (used in the file chooser).String
globalInfo()
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
read
-
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
read
-
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:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
getCorrespondingWriter
public ImageSegmentationAnnotationWriter getCorrespondingWriter()
Returns, if available, the corresponding writer.- Specified by:
getCorrespondingWriter
in interfaceImageSegmentationAnnotationReader
- Specified by:
getCorrespondingWriter
in 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:
doReadLayers
in classAbstractPNGAnnotationImageSegmentationReader
- Parameters:
file
- the file to read from- Returns:
- the annotations
-
-