@ALDAOperator(genericExecutionMode=ALL, level=STANDARD) public class SegmentationInitializer extends MTBOperator
MTBSegmentationInterface
.Modifier and Type | Class and Description |
---|---|
static class |
SegmentationInitializer.InputMode
Available data sources.
|
static class |
SegmentationInitializer.SegmentationDimension
Available dimensions for segmentations.
|
static class |
SegmentationInitializer.ShapeType
Available shape types.
|
Modifier and Type | Field and Description |
---|---|
protected MTBImage |
binaryImage |
protected SegmentationInitializer.InputMode |
inMode |
protected MTBImage |
labelImage |
protected boolean |
regionBinaryMode |
protected MTBRegion2DSet |
regionSet |
protected SegmentationInitializer.SegmentationDimension |
segDim |
protected MTBSegmentationInterface |
segObject |
protected SegmentationInitializer.ShapeType |
shape |
protected double |
shapeDimX |
protected double |
shapeDimY |
protected double |
shapeDimZ |
protected int |
shapeMaskSizeX |
protected int |
shapeMaskSizeY |
protected int |
shapeMaskSizeZ |
protected double |
shapePosX |
protected double |
shapePosY |
protected double |
shapePosZ |
protected double |
threshold |
protected MTBImage |
thresholdImage |
Constructor and Description |
---|
SegmentationInitializer()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
generateSegmentation()
Generates segmentation objects given specified data.
|
protected MTBSegmentation2D |
get2DInterface(MTBImage labelImg,
boolean binaryMode)
Generates 2D segmentation.
|
protected MTBSegmentation2D |
get2DMask()
Generates a synthetic 2D mask according to given specification.
|
protected MTBSegmentation3D |
get3DInterface(MTBImage labelImg,
boolean binaryMode)
Generates 3D segmentation.
|
MTBSegmentation3D |
get3DMask()
Generates a synthetic 3D mask according to given specification.
|
MTBImage |
getBinaryImage()
Get the image for binary mode.
|
SegmentationInitializer.InputMode |
getInputMode()
Get input mode.
|
MTBImage |
getLabelImage()
Get the label image.
|
MTBRegion2DSet |
getRegionSet()
Get the region set.
|
SegmentationInitializer.SegmentationDimension |
getSegDim()
Get target dimension.
|
MTBSegmentationInterface |
getSegmentation()
Get the generated segmentation object.
|
SegmentationInitializer.ShapeType |
getShape()
Get the selected shape.
|
double |
getShapeDimX()
Get extent of shape in x dimension.
|
double |
getShapeDimY()
Get extent of shape in y dimension.
|
double |
getShapeDimZ()
Get extent of shape in z dimension.
|
int |
getShapeMaskSizeX()
Get size of shape mask in x dimension.
|
int |
getShapeMaskSizeY()
Get size of shape mask in y dimension.
|
int |
getShapeMaskSizeZ()
Get size of shape mask in z dimension.
|
double |
getShapePosX()
Get position of shape in x dimension.
|
double |
getShapePosY()
Get position of shape in y dimension.
|
double |
getShapePosZ()
Get position of shape in z dimension.
|
protected MTBSegmentationInterface |
getSynthMask(SegmentationInitializer.SegmentationDimension sDim)
Generate synthetic mask.
|
double |
getThreshold()
Get threshold to be applied to image.
|
MTBImage |
getThresholdImage()
Get image for thresholding
|
boolean |
isRegionBinaryMode()
Check for region input mode.
|
protected void |
operate() |
void |
setBinaryImage(MTBImage _binaryImage)
Set the binary image.
|
void |
setInputMode(SegmentationInitializer.InputMode _mode)
Set input mode.
|
void |
setLabelImage(MTBImage _labelImage)
Set the label image.
|
void |
setRegionBinaryMode(boolean _regionBinaryMode)
Specify region input mode.
|
void |
setRegionSet(MTBRegion2DSet _regionSet)
Set the region set.
|
void |
setSegDim(SegmentationInitializer.SegmentationDimension _segDim)
Set target dimension.
|
void |
setShape(SegmentationInitializer.ShapeType _shape)
Specify shape for synthetic initialization.
|
void |
setShapeDimX(double _shapeDimX)
Set extent of shape in x dimension.
|
void |
setShapeDimY(double _shapeDimY)
Set extent of shape in y dimension.
|
void |
setShapeDimZ(double _shapeDimZ)
Set extent of shape in z dimension.
|
void |
setShapeMaskSizeX(int _shapeMaskSizeX)
Set size of shape mask in x dimension.
|
void |
setShapeMaskSizeY(int _shapeMaskSizeY)
Set size of shape mask in y dimension.
|
void |
setShapeMaskSizeZ(int _shapeMaskSizeZ)
Set size of shape mask in z dimension.
|
void |
setShapePosX(double _shapePosX)
Set position of shape in x dimension.
|
void |
setShapePosY(double _shapePosY)
Set position of shape in y dimension.
|
void |
setShapePosZ(double _shapePosZ)
Set position of shape in z dimension.
|
void |
setThreshold(double _threshold)
Set threshold for threshold mode.
|
void |
setThresholdImage(MTBImage _thresholdImage)
Set image for thresholding.
|
void |
validateCustom() |
readResolve
addOperatorExecutionProgressEventListener, addParameter, addParameter, addParameterUnconditioned, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getDocumentation, getHidingMode, getInactiveParameterNames, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterDescriptorUnconditioned, getParameterNames, getParameterUnconditioned, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, hasInOutParameters, hasParameter, isAnnotatedParameter, isConfigured, print, print, print, printInterface, printInterface, readHistory, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, removeParameter, runOp, runOp, runOp, setConstructionMode, setConstructionMode, setConstructionMode, setHidingMode, setName, setParameter, setParameterUnconditioned, setVerbose, toStringVerbose, unconfiguredItems, validate, validateGeneric, writeHistory, writeHistory, writeHistory
@Parameter(label="Input Mode", required=true, dataIOOrder=0, direction=IN, description="Source from where to read the data.") protected SegmentationInitializer.InputMode inMode
@Parameter(label="Dimension", required=true, dataIOOrder=1, direction=IN, description="Dimension of generated segmentation object.") protected SegmentationInitializer.SegmentationDimension segDim
@Parameter(label="Binary Mode Image", required=false, dataIOOrder=10, direction=IN, description="Image for two-class segmentation.") protected transient MTBImage binaryImage
@Parameter(label="Label Mode Image", required=false, dataIOOrder=11, direction=IN, description="Label image for n-class segmentation.") protected transient MTBImage labelImage
@Parameter(label="Region Set", required=false, dataIOOrder=12, direction=IN, description="Region set for for two- or n-class segmentation.") protected MTBRegion2DSet regionSet
@Parameter(label="Region Mode", required=false, dataIOOrder=13, direction=IN, description="Assign all regions to the common foreground.") protected boolean regionBinaryMode
@Parameter(label="Threshold Image", required=false, dataIOOrder=14, direction=IN, description="Input image for thresholding.") protected transient MTBImage thresholdImage
@Parameter(label="Threshold", required=false, dataIOOrder=15, direction=IN, description="Threshold to be applied to threshold image.") protected double threshold
@Parameter(label="Shape", required=false, dataIOOrder=16, direction=IN, description="Type of sythetic shape.") protected SegmentationInitializer.ShapeType shape
@Parameter(label="Shape Mask Size X", required=false, dataIOOrder=17, direction=IN, description="Size of mask in x dimension.") protected int shapeMaskSizeX
@Parameter(label="Shape Mask Size Y", required=false, dataIOOrder=18, direction=IN, description="Size of mask in y dimension.") protected int shapeMaskSizeY
@Parameter(label="Shape Mask Size Z", required=false, dataIOOrder=19, direction=IN, description="Size of mask in z dimension.") protected int shapeMaskSizeZ
@Parameter(label="Shape position X", required=false, dataIOOrder=20, direction=IN, description="Shape position in x dimension.") protected double shapePosX
@Parameter(label="Shape position Y", required=false, dataIOOrder=21, direction=IN, description="Shape position in y dimension.") protected double shapePosY
@Parameter(label="Shape position Z", required=false, dataIOOrder=22, direction=IN, description="Shape position in z dimension.") protected double shapePosZ
@Parameter(label="Shape dimension X", required=false, dataIOOrder=23, direction=IN, description="Extent of shape in x dimension.") protected double shapeDimX
@Parameter(label="Shape dimension Y", required=false, dataIOOrder=24, direction=IN, description="Extent of shape in y dimension.") protected double shapeDimY
@Parameter(label="Shape dimension Z", required=false, dataIOOrder=25, direction=IN, description="Extent of shape in z dimension.") protected double shapeDimZ
@Parameter(label="Generated segmentation", direction=OUT, description="Segmentation.") protected transient MTBSegmentationInterface segObject
public SegmentationInitializer() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
protected void operate() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
operate
in class de.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
public void validateCustom() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
validateCustom
in class de.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public SegmentationInitializer.SegmentationDimension getSegDim()
public void setSegDim(SegmentationInitializer.SegmentationDimension _segDim)
_segDim
- Target dimension to be used.public SegmentationInitializer.InputMode getInputMode()
public void setInputMode(SegmentationInitializer.InputMode _mode)
_mode
- Input mode to be used.public MTBImage getBinaryImage()
public void setBinaryImage(MTBImage _binaryImage)
_binaryImage
- Binary image for mask initialization.public MTBImage getLabelImage()
public void setLabelImage(MTBImage _labelImage)
_labelImage
- Label image for n-class initialization.public MTBRegion2DSet getRegionSet()
public void setRegionSet(MTBRegion2DSet _regionSet)
_regionSet
- Set for 2-/n-class initialization.public boolean isRegionBinaryMode()
public void setRegionBinaryMode(boolean _regionBinaryMode)
_regionBinaryMode
- Flag for region input mode.public MTBImage getThresholdImage()
public void setThresholdImage(MTBImage _thresholdImage)
_thresholdImage
- Image for thresholding.public double getThreshold()
public void setThreshold(double _threshold)
_threshold
- Threshold to be applied to threshold image.public SegmentationInitializer.ShapeType getShape()
public void setShape(SegmentationInitializer.ShapeType _shape)
_shape
- Shape type to be used.public int getShapeMaskSizeX()
public void setShapeMaskSizeX(int _shapeMaskSizeX)
_shapeMaskSizeX
- Size to be used.public int getShapeMaskSizeY()
public void setShapeMaskSizeY(int _shapeMaskSizeY)
_shapeMaskSizeY
- Size to be used.public int getShapeMaskSizeZ()
public void setShapeMaskSizeZ(int _shapeMaskSizeZ)
_shapeMaskSizeZ
- Size to be used.public double getShapePosX()
public void setShapePosX(double _shapePosX)
_shapePosX
- Position in x.public double getShapePosY()
public void setShapePosY(double _shapePosY)
_shapePosY
- Position in y.public double getShapePosZ()
public void setShapePosZ(double _shapePosZ)
_shapePosZ
- Position in z.public double getShapeDimX()
public void setShapeDimX(double _shapeDimX)
_shapeDimX
- Extent to be used.public double getShapeDimY()
public void setShapeDimY(double _shapeDimY)
_shapeDimY
- Extent to be used.public double getShapeDimZ()
public void setShapeDimZ(double _shapeDimZ)
_shapeDimZ
- Extent to be used.public MTBSegmentationInterface getSegmentation()
protected void generateSegmentation() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
protected MTBSegmentation2D get2DInterface(MTBImage labelImg, boolean binaryMode)
labelImg
- Label image to process.binaryMode
- If true, two-class segmentation is generated.protected MTBSegmentation3D get3DInterface(MTBImage labelImg, boolean binaryMode)
labelImg
- Label image to process.binaryMode
- If true, two-class segmentation is generated.protected MTBSegmentationInterface getSynthMask(SegmentationInitializer.SegmentationDimension sDim)
protected MTBSegmentation2D get2DMask()
public MTBSegmentation3D get3DMask()
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.