public abstract class ConnectedThresholdFilterBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte |
BACKGROUND
Value of background (not member) pixel in output image
|
protected java.util.LinkedList<Point3DInt> |
candidatePoints
Grow candidates
|
protected byte[][] |
destPixels
Pixels of the destination image
|
static byte |
MARKER
Value of a member pixel in output image
|
protected static byte |
NOT_MEMBER
Used to mark pixels that were determined to not be members.
|
protected int |
valueMax |
protected int |
valueMin |
protected int |
xMax |
protected int |
xMin |
protected int |
xSize |
protected int |
yMax |
protected int |
yMin |
protected int |
ySize |
protected int |
zMax |
protected int |
zMin |
protected int |
zSize |
Constructor and Description |
---|
ConnectedThresholdFilterBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
checkForGrow(int x,
int y,
int z)
Check if point with coordinates (x,y,z) is a new candidate.
|
protected abstract void |
createHandleToSrcPixels(ij.ImageStack src)
Create handle to source pixels, e.g.
|
int |
getValueMax()
Gets the ValueMax attribute of the ConnectedThresholdFilter object
|
int |
getValueMin()
Gets the ValueMin attribute of the ConnectedThresholdFilter object
|
ij.ImageStack |
run(ij.ImageStack src,
Point3DInt seed)
Main processing method for the ConnectedThresholdFilter object
|
void |
setValueMax(int valueMax)
Set max threshold value.
|
void |
setValueMin(int valueMin)
Set min threshold value.
|
public static final byte MARKER
public static final byte BACKGROUND
protected static final byte NOT_MEMBER
protected byte[][] destPixels
protected java.util.LinkedList<Point3DInt> candidatePoints
protected int xSize
protected int ySize
protected int zSize
protected int xMin
protected int xMax
protected int yMin
protected int yMax
protected int zMin
protected int zMax
protected int valueMin
protected int valueMax
public final void setValueMax(int valueMax)
valueMax
- The new ValueMax valuepublic final void setValueMin(int valueMin)
valueMin
- The new ValueMin valuepublic final int getValueMax()
public final int getValueMin()
public final ij.ImageStack run(ij.ImageStack src, Point3DInt seed)
src
- Input image.seed
- Seed point.protected abstract void createHandleToSrcPixels(ij.ImageStack src)
src
- source stack.protected abstract void checkForGrow(int x, int y, int z)
This method modifies 'candidatePoints' and 'destPixels'.
x
- x coordinatey
- y coordinatez
- z coordinate