public class SkeletonPruner
extends java.lang.Object
Constructor and Description |
---|
SkeletonPruner(int minimumLength,
ij.process.ByteProcessor inputProcessor) |
Modifier and Type | Method and Description |
---|---|
ij.process.ByteProcessor |
getPrunedImage() |
boolean |
pruneBranches(ij.process.ImageProcessor processor)
Removes all branches from a skeleton structure that are less than the
specified minimum length.
|
void |
prunePoints(java.awt.Rectangle roi,
ij.process.ImageProcessor processor)
Removes all artifactual points from a skeleton structure.
|
public SkeletonPruner(int minimumLength, ij.process.ByteProcessor inputProcessor)
public void prunePoints(java.awt.Rectangle roi, ij.process.ImageProcessor processor)
roi
- region of interestprocessor
- image containing the skeleton structure, which is
modified during the operation.public boolean pruneBranches(ij.process.ImageProcessor processor)
processor
- image containing the skeleton structurepublic ij.process.ByteProcessor getPrunedImage()