@ALDAOperator(genericExecutionMode=ALL, level=APPLICATION) public class SkeletonExtractor extends MTBOperator
The foreground of the given image is defined by all pixels having values larger than zero.
Note that this operator directly uses ImageJ 1.x functionality! In ImageJ the skeletonization is implemented based on this paper:
Zhang TY, Suen CY (1984) A fast parallel algorithm for thinning digital patterns. Commun ACM 27: 236–239
For more details take a look at Section 29.8.9 on this page:
https://imagej.nih.gov/ij/docs/guide/146-29.html#toc-Subsection-29.8
Modifier and Type | Field and Description |
---|---|
private MTBImage |
inImg
Binary input image, pixels with value 0 are interpreted as background.
|
private MTBImageByte |
resultImg
Binary result image, skeleton in white, background in black.
|
Constructor and Description |
---|
SkeletonExtractor()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
MTBImage |
getInputImage()
Returns the input image, null if not set.
|
MTBImageByte |
getResultImage()
Returns the skeleton image.
|
protected void |
operate()
This method does the actual work.
|
void |
setInputImage(MTBImage img)
Set input image to process.
|
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
@Parameter(label="Input Image", required=true, dataIOOrder=0, direction=IN, description="Input image.") private transient MTBImage inImg
@Parameter(label="Result Image", required=true, direction=OUT, description="Result image.") private transient MTBImageByte resultImg
public SkeletonExtractor() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
- Thrown in case of failure.public void setInputImage(MTBImage img)
img
- Input image to process.public MTBImage getInputImage()
public MTBImageByte getResultImage()
protected void operate()
operate
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.