@ALDAOperator(genericExecutionMode=ALL, level=APPLICATION, shortDescription="Makes an initial segmentation of Xylem Cell Images") public class XylemInitialSegmentation extends MTBOperator
The input image is a grey level image of the Xylem cells. The output image is a binary image of the initial segmentation.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_minAreaAfterOpening |
static double |
DEFAULT_minCompactness |
static int |
DEFAULT_seOpeningSize |
private MTBImageByte |
initSegImageByte
The resulting binary image after the initial segmentation.
|
private int |
minAreaAfterErosion
The minimum size of regions after the erosion to get preserved.
|
private int |
minAreaAfterOpening
Minimal area (in pixels) of a region required after opening.
|
private double |
minCompactness
Minimal compactness of a region required after opening.
|
private boolean |
printTiming
Should time of processing be printed to stdout
|
private int |
seErosionSize
Size of the structuring element for the erosion.
|
private int |
seOpeningSize
Size of the structuring element for Opening.
|
private BasicMorphology.maskShape |
shapeForErosion
The shape of structuring element for the Erosion.
|
private BasicMorphology.maskShape |
shapeForOpening
The shape of structuring element for the opening.
|
private MTBImage |
xylemGrayedImage
The Xylem Cell microscope MTBImageByte grey level image.
|
Constructor and Description |
---|
XylemInitialSegmentation()
Default constructor.
|
XylemInitialSegmentation(MTBImageByte grayScaleXylemImage) |
readResolve
addOperatorExecutionProgressEventListener, addParameter, addParameter, addParameterUnconditioned, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, 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, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory
public static final int DEFAULT_seOpeningSize
public static final int DEFAULT_minAreaAfterOpening
public static final double DEFAULT_minCompactness
@Parameter(label="XylemCellGrayImage", required=true, dataIOOrder=1, direction=IN, description="The Xylem Cell microscope grey level image") private transient MTBImage xylemGrayedImage
@Parameter(label="SizeStructuringElementOpening", required=false, dataIOOrder=2, direction=IN, description="The size of the structuring element for the opening", mode=ADVANCED) private int seOpeningSize
@Parameter(label="MinRegionSize", required=false, dataIOOrder=3, direction=IN, description="The minimal size of the region required after opening", mode=ADVANCED) private int minAreaAfterOpening
< minAreaAfterOpening
the region
will be removed by the
ComponentPostprocess
operator.@Parameter(label="MinCompactness", required=false, dataIOOrder=4, direction=IN, description="The minimal compactness of the region required after opening", mode=ADVANCED) private double minCompactness
< minCompactness
the
region will be removed by the
ComponentPostprocess
operator.@Parameter(label="PrintTiming", required=false, dataIOOrder=4, direction=IN, description="Print timing information to standard output", mode=ADVANCED) private boolean printTiming
@Parameter(label="InitialSegmentation", required=true, dataIOOrder=1, direction=OUT, description="The resulting initial segmentation as a binary image") private transient MTBImageByte initSegImageByte
private int seErosionSize
private BasicMorphology.maskShape shapeForOpening
private BasicMorphology.maskShape shapeForErosion
private int minAreaAfterErosion
public XylemInitialSegmentation() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public XylemInitialSegmentation(MTBImageByte grayScaleXylemImage) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
grayScaleXylemImage
- 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 MTBImage getXylemImage()
public void setXylemImage(MTBImage xylemImage)
xylemImage
- public MTBImageByte getInitSegImageByte()
public void setInitSegImageByte(MTBImageByte initSegImageByte)
initSegImageByte
- public int getSeOpeningSize()
public void setSeOpeningSize(int seOpeningSize)
public int getSeErosionSize()
public void setSeErosionSize(int seErosionSize)
public int getMinAreaAfterOpening()
public void setMinAreaAfterOpening(int minAreaAfterOpening)
public int getMinAreaAfterErosion()
public void setMinAreaAfterErosion(int minAreaAfterErosion)
public double getMinCompactness()
public void setMinCompactness(double minCompactness)
public BasicMorphology.maskShape getShapeForOpening()
public void setShapeForOpening(BasicMorphology.maskShape shapeForOpening)
public BasicMorphology.maskShape getShapeForErosion()
public void setShapeForErosion(BasicMorphology.maskShape shapeForErosion)
public String getDocumentation()
getDocumentation
in class de.unihalle.informatik.Alida.operator.ALDOperator
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.