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 StringVALUE_BASEthe base image.static StringVALUE_LAYERSthe layers.static StringVALUE_NAMEthe 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 BufferedImagegetBaseImage()Returns the base image.ImageSegmentationContainergetClone()Returns a clone of itself.Map<String,BufferedImage>getLayers()Returns the layers.protected voidinitHelp()Initializes the help strings.booleanisValid()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:
initHelpin classAbstractContainer
-
names
public Iterator<String> names()
Returns all value names that can be used (theoretically).- Specified by:
namesin interfaceContainer- Specified by:
namesin classAbstractContainer- Returns:
- enumeration over all possible value names
-
isValid
public boolean isValid()
Checks whether the setup of the container is valid.- Specified by:
isValidin interfaceContainer- Specified by:
isValidin 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:
getClonein interfaceCloneHandler<Container>- Specified by:
getClonein interfaceContainer- Overrides:
getClonein classAbstractContainer- Returns:
- the clone
-
-