public class BiSearch extends AbstractSearch
The search distance function (Cost
) and heuristic estimate (Heuristic
) are
supplied by the caller.
Modifier and Type | Field and Description |
---|---|
protected long |
closed_from_goal_count |
protected long |
closed_from_start_count |
protected Cost |
costFunction |
protected int |
goal_x |
protected int |
goal_y |
protected int |
goal_z |
protected Heuristic |
heuristic |
protected SearchImageStack<BiSearchNode> |
nodes_as_image |
protected org.jheaps.AddressableHeap<BiSearchNode,Void> |
open_from_goal |
protected org.jheaps.AddressableHeap<BiSearchNode,Void> |
open_from_start |
protected Path |
result |
protected int |
start_x |
protected int |
start_y |
protected int |
start_z |
img, imgAccess, imgDepth, imgHeight, imgWidth, progressListeners, reportEveryMilliseconds, spacing_units, timeoutSeconds, verbose, xMax, xMin, xSep, yMax, yMin, ySep, zMax, zMin, zSep
Constructor and Description |
---|
BiSearch(RandomAccessibleInterval<? extends RealType<?>> image,
ij.measure.Calibration calibration,
int start_x,
int start_y,
int start_z,
int goal_x,
int goal_y,
int goal_z,
int timeoutSeconds,
long reportEveryMilliseconds,
SNT.SearchImageType searchImageType,
Cost costFunction,
Heuristic heuristic) |
BiSearch(SNT snt,
int start_x,
int start_y,
int start_z,
int goal_x,
int goal_y,
int goal_z) |
BiSearch(SNT snt,
int start_x,
int start_y,
int start_z,
int goal_x,
int goal_y,
int goal_z,
Cost costFunction,
Heuristic heuristic) |
BiSearch(SNT snt,
RandomAccessibleInterval<? extends RealType<?>> image,
int start_x,
int start_y,
int start_z,
int goal_x,
int goal_y,
int goal_z,
Cost costFunction,
Heuristic heuristic) |
Modifier and Type | Method and Description |
---|---|
void |
addProgressListener(SearchProgressCallback callback) |
protected boolean |
checkStatus() |
protected void |
expandNeighbors(BiSearchNode p,
boolean fromStart) |
SearchImageStack<BiSearchNode> |
getNodesAsImage() |
Path |
getResult() |
long |
pointsConsideredInSearch() |
void |
printStatus() |
protected Path |
reconstructPath(double x_spacing,
double y_spacing,
double z_spacing,
String spacing_units) |
void |
reportFinished(boolean success) |
protected void |
reportPointsInSearch() |
void |
run() |
protected final int start_x
protected final int start_y
protected final int start_z
protected final int goal_x
protected final int goal_y
protected final int goal_z
protected final Cost costFunction
protected final Heuristic heuristic
protected org.jheaps.AddressableHeap<BiSearchNode,Void> open_from_start
protected org.jheaps.AddressableHeap<BiSearchNode,Void> open_from_goal
protected long closed_from_start_count
protected long closed_from_goal_count
protected final SearchImageStack<BiSearchNode> nodes_as_image
protected Path result
public BiSearch(RandomAccessibleInterval<? extends RealType<?>> image, ij.measure.Calibration calibration, int start_x, int start_y, int start_z, int goal_x, int goal_y, int goal_z, int timeoutSeconds, long reportEveryMilliseconds, SNT.SearchImageType searchImageType, Cost costFunction, Heuristic heuristic)
public BiSearch(SNT snt, RandomAccessibleInterval<? extends RealType<?>> image, int start_x, int start_y, int start_z, int goal_x, int goal_y, int goal_z, Cost costFunction, Heuristic heuristic)
public BiSearch(SNT snt, int start_x, int start_y, int start_z, int goal_x, int goal_y, int goal_z, Cost costFunction, Heuristic heuristic)
public BiSearch(SNT snt, int start_x, int start_y, int start_z, int goal_x, int goal_y, int goal_z)
public void run()
protected void expandNeighbors(BiSearchNode p, boolean fromStart)
protected Path reconstructPath(double x_spacing, double y_spacing, double z_spacing, String spacing_units)
public void addProgressListener(SearchProgressCallback callback)
addProgressListener
in class AbstractSearch
public void reportFinished(boolean success)
public long pointsConsideredInSearch()
pointsConsideredInSearch
in class AbstractSearch
protected boolean checkStatus()
public Path getResult()
public void printStatus()
printStatus
in class AbstractSearch
protected void reportPointsInSearch()
reportPointsInSearch
in class AbstractSearch
public SearchImageStack<BiSearchNode> getNodesAsImage()
Copyright © 2015–2021 Fiji. All rights reserved.