public class SkeletonPruner
extends java.lang.Object
Constructor and Description |
---|
SkeletonPruner(int minimumLength,
ij.process.ByteProcessor inputProcessor,
java.awt.Rectangle roi,
boolean loops,
boolean removeAll) |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<int[][]> |
getBranches() |
ij.process.ByteProcessor |
getPrunedImage() |
boolean |
pruneBranches(ij.process.ImageProcessor processor,
boolean loops)
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, java.awt.Rectangle roi, boolean loops, boolean removeAll)
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, boolean loops)
processor
- image containing the skeleton structurepublic ij.process.ByteProcessor getPrunedImage()
public java.util.ArrayList<int[][]> getBranches()