private class PaCeQuant.SkeletonPostprocessor extends MTBOperator
This operator mainly removes spines from the border skeletons and eliminates regions including very long intrusions, i.e. spines which are longer than the given threshold or even branch.
Modifier and Type | Field and Description |
---|---|
private MTBImageByte |
inputImg
Input skeleton image to process.
|
private int |
maxSpineLength
Maximal allowed length of a branch to be accepted as spine.
|
private static String |
opID
Identifier string for this operator class.
|
private MTBImageByte |
postprocessedImg
Postprocessed skeleton image.
|
Constructor and Description |
---|
SkeletonPostprocessor()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
MTBImageByte |
getResultImage()
Returns postprocessed skeleton image.
|
protected void |
operate() |
void |
setInputImage(MTBImageByte img)
Set input image to process.
|
void |
setMaximalSpineLength(int maxLength)
Set maximal length of spines.
|
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, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory
private static final String opID
@Parameter(label="Input Image", required=true, direction=IN, description="Input image.", dataIOOrder=0) private transient MTBImageByte inputImg
The operator expects a binary image with the skeleton pixels having black color on a white background.
@Parameter(label="Maximal Length of Spines", required=true, direction=IN, description="Max. spine length.", dataIOOrder=1) private int maxSpineLength
@Parameter(label="Postprocessed Image", dataIOOrder=0, direction=OUT, description="Postprocessed skeleton image.") private transient MTBImageByte postprocessedImg
public SkeletonPostprocessor() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
- Thrown on instantiation failures.public void setInputImage(MTBImageByte img)
Expecting skeleton to be black on white background.
img
- Input skeleton image.public void setMaximalSpineLength(int maxLength)
maxLength
- Maximal length of spines.public MTBImageByte getResultImage()
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
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.