@ALDAOperator(genericExecutionMode=ALL,
level=STANDARD)
public class SkeletonPostprocessor
extends MTBOperator
This operator mainly removes spines from the skeletons.
| 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.
|
private boolean |
removeSpines
Flag to enable/disable spine removal.
|
| Constructor and Description |
|---|
SkeletonPostprocessor()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doRemoveSpines(boolean b)
Enable/disable removal of spines.
|
MTBImageByte |
getResultImage()
Returns post-processed skeleton image.
|
protected void |
operate() |
void |
setInputImage(MTBImageByte img)
Set input image to process.
|
void |
setMaximalSpineLength(int maxLength)
Set maximal length of spines.
|
readResolveaddOperatorExecutionProgressEventListener, 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, writeHistoryprivate 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="Remove spines?",
required=true,
direction=IN,
description="If active, spines are removes.",
dataIOOrder=1)
private boolean removeSpines
@Parameter(label="Maximal Length of Spines",
required=true,
direction=IN,
description="Max. spine length.",
dataIOOrder=2)
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 doRemoveSpines(boolean b)
b - If true, spine removal is activated.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.ALDOperatorde.unihalle.informatik.Alida.exceptions.ALDOperatorExceptionde.unihalle.informatik.Alida.exceptions.ALDProcessingDAGExceptionCopyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.