Package adams.flow.container
Class ImageSegmentationContainer
- java.lang.Object
-
- adams.flow.container.AbstractContainer
-
- adams.flow.container.ImageSegmentationContainer
-
- All Implemented Interfaces:
CloneHandler<Container>
,GlobalInfoSupporter
,SpreadSheetSupporter
,Container
,Serializable
public class ImageSegmentationContainer extends AbstractContainer
Container for storing image segmentation annotations.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
VALUE_BASE
the base image.static String
VALUE_LAYERS
the layers.static String
VALUE_NAME
the image name.-
Fields inherited from class adams.flow.container.AbstractContainer
m_AdditionalNames, m_Help, m_Values
-
-
Constructor Summary
Constructors Constructor Description ImageSegmentationContainer()
Initializes the container no data.ImageSegmentationContainer(String name, BufferedImage base)
Initializes the container with the specified base image.ImageSegmentationContainer(String name, BufferedImage base, Map<String,BufferedImage> layers)
Initializes the container with the specified base image and layers.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BufferedImage
getBaseImage()
Returns the base image.ImageSegmentationContainer
getClone()
Returns a clone of itself.Map<String,BufferedImage>
getLayers()
Returns the layers.protected void
initHelp()
Initializes the help strings.boolean
isValid()
Checks whether the setup of the container is valid.Iterator<String>
names()
Returns all value names that can be used (theoretically).-
Methods inherited from class adams.flow.container.AbstractContainer
addAdditionalName, addHelp, addHelp, addHelp, checkDefaultConstructor, getHelp, getValue, getValue, globalInfo, hasHelp, hasValue, isValidName, removeAdditionalName, setValue, store, stored, toSpreadSheet, toString
-
-
-
-
Field Detail
-
VALUE_NAME
public static final String VALUE_NAME
the image name.- See Also:
- Constant Field Values
-
VALUE_BASE
public static final String VALUE_BASE
the base image.- See Also:
- Constant Field Values
-
VALUE_LAYERS
public static final String VALUE_LAYERS
the layers.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ImageSegmentationContainer
public ImageSegmentationContainer()
Initializes the container no data.
-
ImageSegmentationContainer
public ImageSegmentationContainer(String name, BufferedImage base)
Initializes the container with the specified base image.- Parameters:
name
- the name of the imagebase
- the base image
-
ImageSegmentationContainer
public ImageSegmentationContainer(String name, BufferedImage base, Map<String,BufferedImage> layers)
Initializes the container with the specified base image and layers.- Parameters:
name
- the name of the imagebase
- the base imagelayers
- the layers
-
-
Method Detail
-
initHelp
protected void initHelp()
Initializes the help strings.- Overrides:
initHelp
in classAbstractContainer
-
names
public Iterator<String> names()
Returns all value names that can be used (theoretically).- Specified by:
names
in interfaceContainer
- Specified by:
names
in classAbstractContainer
- Returns:
- enumeration over all possible value names
-
isValid
public boolean isValid()
Checks whether the setup of the container is valid.- Specified by:
isValid
in interfaceContainer
- Specified by:
isValid
in classAbstractContainer
- Returns:
- true if all the necessary values are available
-
getBaseImage
public BufferedImage getBaseImage()
Returns the base image.- Returns:
- the base image
-
getLayers
public Map<String,BufferedImage> getLayers()
Returns the layers.- Returns:
- the layers
-
getClone
public ImageSegmentationContainer getClone()
Returns a clone of itself.- Specified by:
getClone
in interfaceCloneHandler<Container>
- Specified by:
getClone
in interfaceContainer
- Overrides:
getClone
in classAbstractContainer
- Returns:
- the clone
-
-