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 boolean |
allowBranchPointsInSpines
Flag to enable/disable check for branch points in spines.
|
private MTBImageByte |
inputImg
Input skeleton image to process.
|
private double |
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 PaCeQuant.SpineLengthDefine |
spineLengthDefine
Spine length interpretation.
|
| Constructor and Description |
|---|
SkeletonPostprocessor()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
allowBranchPointsInSpines(boolean flag)
Allow/deny branch points in spines.
|
MTBImageByte |
getResultImage()
Returns postprocessed skeleton image.
|
protected void |
operate() |
void |
setInputImage(MTBImageByte img)
Set input image to process.
|
void |
setMaximalSpineLength(double maxLength)
Set maximal length of spines.
|
void |
setSpineLengthDefine(PaCeQuant.SpineLengthDefine sld)
Set interpretation mode for 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="Interpretation Mode for Spine Length",
required=true,
direction=IN,
dataIOOrder=10,
description="Interpretation of spine length.")
private PaCeQuant.SpineLengthDefine spineLengthDefine
@Parameter(label="Maximal Length of Spines",
required=true,
direction=IN,
description="Max. spine length.",
dataIOOrder=11)
private double maxSpineLength
The interpretation of the provided values depends on the settings of
the parameter spineLengthDefine, i.e., has to be either in
absolute pixel values or as a relative value with regard to the region
perimeter (measured in terms of the number of border pixels).
@Parameter(label="Allow Branch Points in Spines?",
required=true,
direction=IN,
description="Flag to enable/disable check for branch points in spines.",
dataIOOrder=12)
private boolean allowBranchPointsInSpines
@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 setSpineLengthDefine(PaCeQuant.SpineLengthDefine sld)
sld - Spine length interpretation mode (see PaCeQuant.SpineLengthDefine).public void setMaximalSpineLength(double maxLength)
maxLength - Maximal length of spines.public void allowBranchPointsInSpines(boolean flag)
Often branch points within spines are indicators for peculiar intensity structures and it might be better to remove regions with such spines.
flag - If true branch points in spines are tolerated.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–2025 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.