public class FillerThread extends SearchThread
Fill
. This distance is represented in the g-score of a node, which is the length of the shortest path from a
seed point to that node. The magnitudes of these distances are heavily dependent on the supplied cost function
Cost
, so the threshold should be set with a particular cost function in mind. It often helps to adjust
the threshold interactively.CANCELLED, CLOSED_FROM_GOAL, closed_from_goal_count, CLOSED_FROM_START, closed_from_start_count, costFunction, EXIT_REASONS_STRINGS, exitReason, FREE, lastReportMilliseconds, loops, loops_at_last_report, nodes_as_image_from_goal, nodes_as_image_from_start, OPEN_FROM_GOAL, open_from_start, OPEN_FROM_START, OUT_OF_MEMORY, POINTS_EXHAUSTED, started_at, SUCCESS, TIMED_OUT, verbose
img, imgAccess, imgDepth, imgHeight, imgWidth, progressListeners, reportEveryMilliseconds, spacing_units, timeoutSeconds, xMax, xMin, xSep, yMax, yMin, ySep, zMax, zMin, zSep
Constructor and Description |
---|
FillerThread(Dataset dataset,
double initialThreshold,
Cost costFunction) |
FillerThread(Dataset dataset,
double initialThreshold,
int timeoutSeconds,
long reportEveryMilliseconds,
Cost costFunction) |
FillerThread(Dataset dataset,
double initialThreshold,
int timeoutSeconds,
long reportEveryMilliseconds,
Cost costFunction,
SNT.SearchImageType searchImageType) |
FillerThread(RandomAccessibleInterval<? extends RealType<?>> image,
ij.measure.Calibration calibration,
double initialThreshold,
Cost costFunction) |
FillerThread(RandomAccessibleInterval<? extends RealType<?>> image,
ij.measure.Calibration calibration,
double initialThreshold,
int timeoutSeconds,
long reportEveryMilliseconds,
Cost costFunction) |
FillerThread(RandomAccessibleInterval<? extends RealType<?>> image,
ij.measure.Calibration calibration,
double initialThreshold,
int timeoutSeconds,
long reportEveryMilliseconds,
Cost costFunction,
SNT.SearchImageType searchImageType) |
FillerThread(RandomAccessibleInterval<? extends RealType<?>> image,
ij.measure.Calibration calibration,
double initialThreshold,
long reportEveryMilliseconds,
Cost costFunction) |
Modifier and Type | Method and Description |
---|---|
static FillerThread |
fromFill(ij.ImagePlus imagePlus,
ij.process.ImageStatistics stats,
Fill fill) |
static FillerThread |
fromFill(RandomAccessibleInterval<? extends RealType<?>> image,
ij.measure.Calibration calibration,
ij.process.ImageStatistics stats,
Fill fill) |
double |
getDistanceAtPoint(double xd,
double yd,
double zd) |
Fill |
getFill() |
SearchImageStack<DefaultSearchNode> |
getNodesAsImage() |
Path |
getResult() |
double |
getThreshold() |
void |
reportFinished(boolean success) |
protected void |
reportPointsInSearch() |
void |
run() |
void |
setSourcePaths(Collection<Path> newSourcePaths) |
void |
setStopAtThreshold(boolean stopAtThreshold)
Whether to terminate the fill operation once all nodes less than or equal to the
distance threshold have been explored.
|
void |
setStoreExtraNodes(boolean storeExtraNodes)
Whether to store above-threshold nodes in the
Fill object. |
void |
setThreshold(double threshold) |
addNode, addProgressListener, atGoal, checkStatus, createNewNode, foundGoal, getExitReason, getNodesAsImageFromGoal, getNodesAsImageFromStart, pointsConsideredInSearch, printStatus
public FillerThread(RandomAccessibleInterval<? extends RealType<?>> image, ij.measure.Calibration calibration, double initialThreshold, Cost costFunction)
public FillerThread(RandomAccessibleInterval<? extends RealType<?>> image, ij.measure.Calibration calibration, double initialThreshold, long reportEveryMilliseconds, Cost costFunction)
public FillerThread(RandomAccessibleInterval<? extends RealType<?>> image, ij.measure.Calibration calibration, double initialThreshold, int timeoutSeconds, long reportEveryMilliseconds, Cost costFunction)
public FillerThread(RandomAccessibleInterval<? extends RealType<?>> image, ij.measure.Calibration calibration, double initialThreshold, int timeoutSeconds, long reportEveryMilliseconds, Cost costFunction, SNT.SearchImageType searchImageType)
public FillerThread(Dataset dataset, double initialThreshold, int timeoutSeconds, long reportEveryMilliseconds, Cost costFunction, SNT.SearchImageType searchImageType)
public FillerThread(Dataset dataset, double initialThreshold, int timeoutSeconds, long reportEveryMilliseconds, Cost costFunction)
public void setStopAtThreshold(boolean stopAtThreshold)
stopAtThreshold
- public void setStoreExtraNodes(boolean storeExtraNodes)
Fill
object. The default is true.storeExtraNodes
- getFill()
public static FillerThread fromFill(RandomAccessibleInterval<? extends RealType<?>> image, ij.measure.Calibration calibration, ij.process.ImageStatistics stats, Fill fill)
public static FillerThread fromFill(ij.ImagePlus imagePlus, ij.process.ImageStatistics stats, Fill fill)
public double getDistanceAtPoint(double xd, double yd, double zd)
public Fill getFill()
public double getThreshold()
public void setThreshold(double threshold)
public void setSourcePaths(Collection<Path> newSourcePaths)
public void run()
run
in interface Runnable
run
in class SearchThread
public SearchImageStack<DefaultSearchNode> getNodesAsImage()
protected void reportPointsInSearch()
reportPointsInSearch
in class SearchThread
public Path getResult()
public void reportFinished(boolean success)
reportFinished
in class SearchThread
Copyright © 2015–2021 Fiji. All rights reserved.