public abstract class SparseFieldLevelSet extends Object implements StagedAlgorithm
Modifier and Type | Field and Description |
---|---|
protected double |
CONVERGENCE_FACTOR |
protected double |
CONVERGENCE_WEIGHT |
protected double |
DELTA_T |
protected ImageContainer |
img |
protected StateContainer |
init_state |
static int |
INSIDE |
static int |
INSIDE_FAR |
protected boolean |
needInit |
static int |
OUTSIDE |
static int |
OUTSIDE_FAR |
protected DeferredDoubleArray3D |
phi |
protected boolean |
seed_grey_zero |
protected int |
seed_greyvalue |
protected ImageContainer |
source |
static int |
STATE_ZERO |
protected double |
zScale |
Constructor and Description |
---|
SparseFieldLevelSet(ImageContainer image,
ImageProgressContainer img_progress,
StateContainer init_state,
double convergence)
Creates a new instance of LevelSet
|
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup() |
void |
dumpStateMap(String path)
Dums the statemap into a file
|
protected abstract double |
getDeltaPhi(int x,
int y,
int z) |
StateContainer |
getStateContainer()
Returns the state map as StateContainer
|
int[][][] |
getStateMap()
Returns the state map
|
protected void |
init() |
boolean |
step(int granularity)
See interface defintion for javadoc
granularity is the max number of iterations that are executed before it returns
returns true if no convergence reached (makes sense to continue), false if convergence has been reached
|
protected abstract void |
updateDeltaT()
Updates the time step for numerical solution.
|
protected DeferredDoubleArray3D phi
public static final int INSIDE
public static final int OUTSIDE
public static final int STATE_ZERO
public static final int INSIDE_FAR
public static final int OUTSIDE_FAR
protected ImageContainer source
protected ImageContainer img
protected StateContainer init_state
protected boolean needInit
protected int seed_greyvalue
protected boolean seed_grey_zero
protected double DELTA_T
protected final double CONVERGENCE_WEIGHT
protected double CONVERGENCE_FACTOR
protected double zScale
public SparseFieldLevelSet(ImageContainer image, ImageProgressContainer img_progress, StateContainer init_state, double convergence)
image
- The input imageimg_progress
- init_state
- convergence
- public int[][][] getStateMap()
public StateContainer getStateContainer()
protected abstract void updateDeltaT()
protected void init()
public boolean step(int granularity)
step
in interface StagedAlgorithm
granularity
- Number of steps to be executed before retuning (until further execution by a
consecutive call)protected abstract double getDeltaPhi(int x, int y, int z)
protected void cleanup()
public void dumpStateMap(String path)
path
- Fully qualified filename of the output fileCopyright © 2015–2021 Fiji. All rights reserved.