public class SNT extends MultiDThreePanes implements SearchProgressCallback, HessianGenerationCallback
Modifier and Type | Class and Description |
---|---|
static class |
SNT.CostType |
static class |
SNT.FilterType |
static class |
SNT.HeuristicType |
static class |
SNT.SearchImageType |
static class |
SNT.SearchType |
MIP_OVERLAY_IDENTIFIER_PREFIX, single_pane, singleSlice, xy, xy_canvas, XY_PLANE, xy_window, xz, xz_canvas, XZ_PLANE, xz_window, zy, zy_canvas, ZY_PLANE, zy_window
Constructor and Description |
---|
SNT(Context context,
ij.ImagePlus sourceImage)
Instantiates SNT in 'Tracing Mode'.
|
SNT(Context context,
PathAndFillManager pathAndFillManager)
Instantiates SNT in 'Analysis Mode'
|
Modifier and Type | Method and Description |
---|---|
boolean |
accessToValidImageData() |
void |
addFillerThread(FillerThread filler) |
void |
addListener(SNTListener listener) |
protected void |
addSphere(String name,
double x,
double y,
double z,
Color color,
double radius) |
protected boolean |
anyListeners() |
Path |
autoTrace(List<SNTPoint> pointList,
PointInImage forkPoint)
Automatically traces a path from a list of points and adds it to the active
PathAndFillManager instance. |
Path |
autoTrace(List<SNTPoint> pointList,
PointInImage forkPoint,
boolean headless) |
Path |
autoTrace(SNTPoint start,
SNTPoint end,
PointInImage forkPoint)
Automatically traces a path from a point A to a point B.
|
Path |
autoTrace(SNTPoint start,
SNTPoint end,
PointInImage forkPoint,
boolean headless) |
void |
cancelPath()
Cancels the temporary path.
|
void |
cancelSearch(boolean cancelFillToo) |
void |
cancelTemporary() |
void |
changeUIState(int newState) |
protected void |
clickAtMaxPoint(int x_in_pane,
int y_in_pane,
int plane) |
protected void |
clickAtMaxPoint(int x_in_pane,
int y_in_pane,
int plane,
boolean join) |
protected void |
clickForTrace(double world_x,
double world_y,
double world_z,
boolean join) |
protected void |
clickForTrace(double x_in_pane_precise,
double y_in_pane_precise,
int plane,
boolean join) |
protected void |
clickForTrace(Point3d p,
boolean join) |
void |
closeAndResetAllPanes() |
void |
confirmTemporary(boolean updateTracingViewers) |
sc.fiji.snt.InteractiveTracerCanvas |
createCanvas(ij.ImagePlus imagePlus,
int plane) |
protected void |
detectEditingPath() |
protected void |
discardFill() |
protected void |
discreteMsg(String msg) |
boolean |
editModeAllowed()
Assesses if activation of 'Edit Mode' is possible.
|
protected boolean |
editModeAllowed(boolean warnUserIfNot) |
void |
enableAstar(boolean enable)
Toggles the A* search algorithm (enabled by default)
|
void |
enableAutoActivation(boolean enable) |
void |
enableAutoSelectionOfFinishedPath(boolean enable) |
protected void |
enableEditMode(boolean enable) |
void |
enableSecondaryLayerTracing(boolean enable) |
void |
enableSnapCursor(boolean enable)
Enables SNT's XYZ snap cursor feature.
|
protected void |
error(String msg) |
protected void |
findSnappingPointInXView(double x_in_pane,
double y_in_pane,
double[] point) |
void |
finished(SearchInterface source,
boolean success) |
protected void |
finishedPath() |
void |
flushSecondaryData() |
protected Image3DUniverse |
get3DUniverse()
Deprecated.
|
protected Component |
getActiveWindow() |
double |
getAverageSeparation() |
int |
getChannel() |
protected boolean |
getConfirmation(String msg,
String title) |
Context |
getContext() |
SNT.CostType |
getCostType() |
Path |
getCurrentPath() |
Dataset |
getDataset() |
int |
getDepth() |
boolean |
getDrawDiametersXY() |
protected int |
getEditingNode() |
protected Path |
getEditingPath() |
ij.ImagePlus |
getFilledBinaryImp() |
ij.ImagePlus |
getFilledDistanceImp() |
<T extends RealType<T>> |
getFilledImp() |
<T extends IntegerType<T>> |
getFilledLabelImp() |
protected File |
getFilteredImageFile()
Returns the file of the 'secondary image', if any.
|
SNT.FilterType |
getFilterType() |
int |
getFrame() |
int |
getHeight() |
SNT.HeuristicType |
getHeuristicType() |
ij.ImagePlus |
getImagePlus() |
ij.ImagePlus |
getImagePlus(int pane)
Gets the Image associated with a view pane.
|
protected double |
getImpDiagonalLength(boolean scaled,
boolean xyOnly) |
<T extends RealType<T>> |
getLoadedData() |
<T extends RealType<T>> |
getLoadedDataAsImp()
Retrieves the pixel data of the main image currently loaded in memory as an
ImagePlus object.
|
protected ij.ImagePlus |
getMainImagePlusWithoutChecks() |
double |
getMinimumSeparation() |
protected double |
getOneMinusErfZFudge() |
PathAndFillManager |
getPathAndFillManager() |
protected int |
getPaths3DDisplay()
Deprecated.
|
double |
getPixelDepth() |
double |
getPixelHeight() |
double |
getPixelWidth() |
SNTPrefs |
getPrefs() |
protected Path |
getPreviousEditingPath() |
SNT.SearchImageType |
getSearchImageType() |
SNT.SearchType |
getSearchType() |
<T extends RealType<T>> |
getSecondaryData() |
<T extends NumericType<T>> |
getSecondaryDataAsImp()
Retrieves the 'secondary image' data currently loaded in memory as an
ImagePlus object.
|
double[] |
getSecondaryImageMinMax() |
Collection<Path> |
getSelectedPaths() |
protected Path |
getSingleSelectedPath() |
String |
getSpacingUnits() |
ij.process.ImageStatistics |
getStats() |
ij.process.ImageStatistics |
getStatsSecondary() |
SNTUI |
getUI()
Gets the main UI.
|
protected int |
getUIState() |
boolean |
getUseSubVolumeStats() |
int |
getWidth() |
protected sc.fiji.snt.InteractiveTracerCanvas |
getXYCanvas() |
protected sc.fiji.snt.InteractiveTracerCanvas |
getXZCanvas() |
protected sc.fiji.snt.InteractiveTracerCanvas |
getZYCanvas() |
protected int |
guessResamplingFactor() |
void |
initialize(boolean singlePane,
int channel,
int frame)
Initializes the plugin by assembling all the required tracing views
|
void |
initialize(ij.ImagePlus imp) |
void |
initPathsToFill(Set<Path> fromPaths) |
protected boolean |
inputImageLoaded() |
boolean |
is2D() |
boolean |
isAstarEnabled()
Checks if A* search is enabled
|
protected boolean |
isChangesUnsaved() |
protected boolean |
isDisplayCanvas(ij.ImagePlus imp) |
protected boolean |
isEditModeEnabled() |
boolean |
isOnlySelectedPathsVisible() |
boolean |
isSecondaryDataAvailable()
Assesses if the 'secondary image' has been loaded into memory.
|
boolean |
isSecondaryImageFileLoaded() |
protected boolean |
isTracingOnSecondaryImageActive() |
protected boolean |
isTracingOnSecondaryImageAvailable() |
protected boolean |
isUIready() |
void |
justDisplayNearSlices(boolean value,
int eitherSide) |
void |
loadLabelsFile(String path) |
void |
loadSecondaryImage(File file)
Loads the 'secondary image' specified by
setSecondaryImage(File) into
memory as 32-bit data. |
void |
loadSecondaryImage(ij.ImagePlus imp) |
protected void |
loadSecondaryImage(ij.ImagePlus imp,
boolean changeUIState) |
<T extends RealType<T>> |
loadSecondaryImage(RandomAccessibleInterval<T> img,
boolean computeStatistics) |
protected <T extends RealType<T>> |
loadSecondaryImage(RandomAccessibleInterval<T> img,
boolean changeUIState,
boolean computeStatistics) |
protected void |
loadSWCFile(File file)
Assumes UI is available
|
protected void |
loadTracesFile(File file)
Assumes UI is available
|
void |
loadTracings(File file) |
ij.ImagePlus |
makePathVolume() |
ij.ImagePlus |
makePathVolume(Collection<Path> paths) |
void |
mouseMovedTo(double x_in_pane,
double y_in_pane,
int in_plane,
boolean sync_panes_modifier_down,
boolean join_modifier_down) |
void |
notifyListeners(SNTEvent event) |
protected void |
pause(boolean pause,
boolean hideSideViewsOnPause) |
protected void |
pauseTracing(boolean pause,
boolean validateChange) |
void |
pointsInSearch(SearchInterface source,
long inOpen,
long inClosed) |
void |
proportionDone(double proportion) |
void |
rebuildDisplayCanvases()
Rebuilds display canvases, i.e., the placeholder canvases used when no
valid image data exists (a single-canvas is rebuilt if only the XY view is
active).
|
void |
rebuildZYXZpanes() |
void |
reloadImage(int channel,
int frame) |
protected void |
removeSphere(String name) |
protected void |
replaceCurrentPath(Path path) |
protected void |
saveFill() |
void |
selectPath(Path p,
boolean addToExistingSelection) |
protected void |
set3DUniverse(Image3DUniverse universe) |
protected void |
setColorImage(ij.ImagePlus newColorImage)
Deprecated.
|
void |
setCostType(SNT.CostType costType) |
void |
setCurrentPath(Path path) |
protected void |
setDeselectedColor(Color newColor) |
void |
setDrawDiametersXY(boolean draw) |
protected void |
setEditingPath(Path path) |
void |
setFillList(List<Fill> fillList) |
void |
setFillThreshold(double distance)
Sets the fill threshold distance.
|
void |
setFillThresholdFrom(double world_x,
double world_y,
double world_z) |
protected void |
setFillTransparent(boolean transparent) |
void |
setFilterType(SNT.FilterType filterType) |
void |
setHeuristicType(SNT.HeuristicType heuristicType) |
void |
setPathList(List<Path> pathList,
Path justAdded,
boolean expandAll) |
protected void |
setPaths3DDisplay(int paths3DDisplay)
Deprecated.
|
protected void |
setPathUnfinished(boolean unfinished) |
void |
setSearchImageType(SNT.SearchImageType searchImageType) |
void |
setSearchType(SNT.SearchType searchType) |
void |
setSecondaryImage(File file)
Specifies the 'secondary image' to be used during a tracing session.
|
void |
setSecondaryImageMinMax(double min,
double max) |
protected void |
setSelectedColor(Color newColor) |
void |
setSelectedPaths(Collection<Path> selectedPathsSet,
Object source) |
protected void |
setShowOnlyActiveCTposPaths(boolean showOnlyActiveCTposPaths,
boolean updateGUI) |
void |
setShowOnlySelectedPaths(boolean showOnlySelectedPaths) |
protected void |
setShowOnlySelectedPaths(boolean showOnlySelectedPaths,
boolean updateGUI) |
void |
setStopFillAtThreshold(boolean stopFillAtThreshold) |
void |
setStoreExtraFillNodes(boolean storeExtraFillNodes) |
void |
setTemporaryPath(Path path) |
void |
setUseSubVolumeStats(boolean useSubVolumeStatistics) |
void |
showCorrespondencesTo(File tracesFile,
Color c,
double maxDistance)
Deprecated.
|
protected void |
showMessage(String msg,
String title) |
protected void |
showMIPOverlays(boolean filteredData,
double opacity) |
void |
showMIPOverlays(double opacity)
Overlays a semi-transparent MIP (8-bit scaled) of the data being traced
over the tracing canvas(es).
|
void |
showStatus(int progress,
int maximum,
String status) |
protected void |
startFilling() |
void |
startHessian(String image,
double sigma,
double max,
boolean wait)
Deprecated.
|
<T extends RealType<T>> |
startHessian(String image,
String filter,
double[] scales,
double min,
double max,
String strategy,
int nThreads)
Constructs and enables an instance of a hessian eigenvalue filter.
|
<T extends RealType<T>> |
startHessian(String image,
String filter,
double[] scales,
String strategy,
int nThreads)
Constructs and enables an instance of a hessian eigenvalue filter.
|
protected void |
startSholl(PointInImage centerScaled) |
void |
startUI() |
protected void |
stopFilling() |
void |
threadStatus(SearchInterface source,
int status) |
protected void |
toggleSnapCursor() |
protected boolean |
uiReadyForModeChange() |
void |
updateAllViewers() |
protected void |
updateCursor(double new_x,
double new_y,
double new_z) |
void |
updateDisplayCanvases()
Rebuilds display canvas(es) to ensure all paths are contained in the image.
|
protected void |
updateImageContent(int resamplingFactor)
Deprecated.
|
protected void |
updateNonTracingViewers() |
protected void |
updateTracingViewers(boolean includeLegacy3Dviewer) |
disableEventsAllPanes, disableZoomAllPanes, findAllPointsAlongLine, findPointInStack, findPointInStackPrecise, getSinglePane, getZYXZ, imageTypeToString, initialize, isDummy, isZoomAllPanesDisabled, main, mouseMovedTo, panEventOccured, reloadZYXZpanes, removeMIPOverlayAllPanes, removeMIPOverlayAllPanes, repaintAllPanes, setAnnotationsColorAllPanes, setCanvasLabelAllPanes, setCursorTextAllPanes, setDrawCrosshairsAllPanes, setLockCursorAllPanes, setSinglePane, setZPositionAllPanes, unzoomAllPanes, zoom100PercentAllPanes, zoomAllPanes, zoomEventOccurred
protected StatusService statusService
protected LegacyService legacyService
protected DatasetIOService datasetIOService
protected ConvertService convertService
protected OpService opService
protected LUTService lutService
protected static boolean verbose
protected static final int MIN_SNAP_CURSOR_WINDOW_XY
protected static final int MIN_SNAP_CURSOR_WINDOW_Z
protected static final int MAX_SNAP_CURSOR_WINDOW_XY
protected static final int MAX_SNAP_CURSOR_WINDOW_Z
protected static final String startBallName
protected static final String targetBallName
protected static final int ballRadiusMultiplier
protected Image3DUniverse univ
protected boolean use3DViewer
protected ij.ImagePlus colorImage
protected static final int DISPLAY_PATHS_SURFACE
protected static final int DISPLAY_PATHS_LINES
protected static final int DISPLAY_PATHS_LINES_AND_DISCS
protected volatile int cursorSnapWindowXY
protected volatile int cursorSnapWindowZ
protected volatile boolean autoCanvasActivation
protected volatile boolean panMode
protected volatile boolean snapCursor
protected volatile boolean unsavedPaths
protected volatile boolean showOnlySelectedPaths
protected volatile boolean showOnlyActiveCTposPaths
protected volatile boolean activateFinishedPath
protected volatile boolean requireShiftToFork
protected int width
protected int height
protected int depth
protected int imageType
protected double x_spacing
protected double y_spacing
protected double z_spacing
protected String spacing_units
protected int channel
protected int frame
protected SNT.FilterType filterType
protected SNT.SearchImageType searchImageType
protected volatile boolean isUseSubVolumeStats
protected volatile double oneMinusErfZFudge
protected boolean doSearchOnSecondaryData
protected RandomAccessibleInterval secondaryData
protected File secondaryImageFile
protected boolean tubularGeodesicsTracingEnabled
protected TubularGeodesicsTracer tubularGeodesicsThread
protected double last_start_point_x
protected double last_start_point_y
protected double last_start_point_z
protected Path temporaryPath
protected Path currentPath
protected SNTUI ui
protected volatile boolean tracingHalted
protected static final Color DEFAULT_DESELECTED_COLOR
protected static final Color3f DEFAULT_SELECTED_COLOR3F
protected static final Color3f DEFAULT_DESELECTED_COLOR3F
protected Color3f selectedColor3f
protected Color3f deselectedColor3f
protected Color selectedColor
protected Color deselectedColor
protected boolean displayCustomPathColors
protected List<SNTListener> listeners
protected boolean drawDiametersXY
public SNT(Context context, ij.ImagePlus sourceImage) throws IllegalArgumentException
context
- the SciJava application context providing the services
required by the classsourceImage
- the source imageIllegalArgumentException
- If sourceImage is of type 'RGB'public SNT(Context context, PathAndFillManager pathAndFillManager)
context
- the SciJava application context providing the services
required by the classpathAndFillManager
- The PathAndFillManager instance to be associated
with the pluginpublic void rebuildDisplayCanvases() throws IllegalArgumentException
Useful when multiple files are imported and imported paths 'fall off' the dimensions of current canvas(es). If there is not enough memory to accommodate enlarged dimensions, the resulting canvas will be a 2D image.
IllegalArgumentException
- if valid image data existspublic void updateDisplayCanvases()
rebuildDisplayCanvases()
public boolean accessToValidImageData()
protected boolean isDisplayCanvas(ij.ImagePlus imp)
public void initialize(ij.ImagePlus imp)
initialize
in class MultiDThreePanes
public void initialize(boolean singlePane, int channel, int frame)
singlePane
- if true only the XY view will be generated, if false XY,
ZY, XZ views are createdchannel
- the channel to be traced. Ignored when no valid image data
exists.frame
- the frame to be traced. Ignored when no valid image data
exists.public void reloadImage(int channel, int frame)
public void rebuildZYXZpanes()
public void startUI()
public void loadTracings(File file)
protected boolean isChangesUnsaved()
public PathAndFillManager getPathAndFillManager()
protected sc.fiji.snt.InteractiveTracerCanvas getXYCanvas()
protected sc.fiji.snt.InteractiveTracerCanvas getXZCanvas()
protected sc.fiji.snt.InteractiveTracerCanvas getZYCanvas()
public Dataset getDataset()
public ij.ImagePlus getImagePlus()
protected double getImpDiagonalLength(boolean scaled, boolean xyOnly)
public sc.fiji.snt.InteractiveTracerCanvas createCanvas(ij.ImagePlus imagePlus, int plane)
createCanvas
in class MultiDThreePanes
public void cancelSearch(boolean cancelFillToo)
public void threadStatus(SearchInterface source, int status)
threadStatus
in interface SearchProgressCallback
public void changeUIState(int newState)
protected int getUIState()
protected void saveFill()
protected void discardFill()
protected void stopFilling()
protected void startFilling()
public void addListener(SNTListener listener)
public void notifyListeners(SNTEvent event)
protected boolean anyListeners()
public void finished(SearchInterface source, boolean success)
finished
in interface SearchProgressCallback
public void pointsInSearch(SearchInterface source, long inOpen, long inClosed)
pointsInSearch
in interface SearchProgressCallback
public void justDisplayNearSlices(boolean value, int eitherSide)
protected boolean uiReadyForModeChange()
protected Path getEditingPath()
protected Path getPreviousEditingPath()
protected int getEditingNode()
public boolean editModeAllowed()
protected boolean editModeAllowed(boolean warnUserIfNot)
protected void setEditingPath(Path path)
protected void detectEditingPath()
protected Path getSingleSelectedPath()
protected void enableEditMode(boolean enable)
protected void pause(boolean pause, boolean hideSideViewsOnPause)
protected void pauseTracing(boolean pause, boolean validateChange)
protected boolean isEditModeEnabled()
protected void updateCursor(double new_x, double new_y, double new_z)
public void loadLabelsFile(String path)
protected void loadTracesFile(File file)
protected void loadSWCFile(File file)
public void mouseMovedTo(double x_in_pane, double y_in_pane, int in_plane, boolean sync_panes_modifier_down, boolean join_modifier_down)
public void setTemporaryPath(Path path)
public void setCurrentPath(Path path)
public Path getCurrentPath()
protected void setPathUnfinished(boolean unfinished)
public ij.ImagePlus makePathVolume(Collection<Path> paths)
public ij.ImagePlus makePathVolume()
public void confirmTemporary(boolean updateTracingViewers)
public void cancelTemporary()
public void cancelPath()
@Deprecated public void startHessian(String image, double sigma, double max, boolean wait)
Tubeness
filter. The image is filtered locally during path
searches. Filtered data is stored in a disk cache when memory runs full. This method is slated for redesign.image
- the image to filter, either "primary" or "secondary".sigma
- the scale parameter for the Tubeness filter, in physical units.max
- the maximum pixel intensity in the Tubeness image beyond which the cost function of the A* search
is minimized.wait
- this parameter does nothing.public <T extends RealType<T>> void startHessian(String image, String filter, double[] scales, String strategy, int nThreads)
T
- image
- the image to filter, either "primary" or "secondary".filter
- the hessian filter type, either "tubeness" or "frangi"scales
- the scale parameters for the Hessian filter, in physical units. Computation time increases linearly
with the number of scales.strategy
- either "lazy" or "preprocess"nThreads
- number of threads to use in the computationpublic <T extends RealType<T>> void startHessian(String image, String filter, double[] scales, double min, double max, String strategy, int nThreads)
T
- image
- the image to filter, either "primary" or "secondary".filter
- the hessian filter type, either "tubeness" or "frangi"scales
- the scale parameters for the Hessian filter, in physical units. Computation time increases linearly
with the number of scales.min
- the minimum pixel intensity in the filtered image beyond which the cost function of the A* search is
maximized.max
- the maximum pixel intensity in the filtered image beyond which the cost function of the A* search
is minimized.strategy
- either "lazy" or "preprocess"nThreads
- number of threads to use in the computationpublic Path autoTrace(SNTPoint start, SNTPoint end, PointInImage forkPoint)
autoTrace(List, PointInImage)
for details.start
- the PointInImage
the starting point of the pathend
- the PointInImage
the terminal point of the pathforkPoint
- the PointInImage
fork point of the parent
Path
from which the searched path should branch off, or
null if the the path should not have any parent.autoTrace(List, PointInImage)
public Path autoTrace(SNTPoint start, SNTPoint end, PointInImage forkPoint, boolean headless)
public Path autoTrace(List<SNTPoint> pointList, PointInImage forkPoint)
PathAndFillManager
instance. Note that this method still requires
SNT's UI. For headless auto-tracing have a look at TracerThread
.
SNT's UI will remain blocked in "search mode" until the Path computation
completes. Tracing occurs through the active SearchInterface
selected in the UI, i.e., TracerThread
(the default A* search),
TubularGeodesicsTracer
, etc.
All input PointInImage
must be specified in real world coordinates.
pointList
- the list of PointInImage
containing the nodes to
be used as target goals during the search. If the search cannot
converge into a target point, such point is omitted from path, if
Successful, target point will be included in the final path. the
final path. The first point in the list is the start of the path,
the last its terminus. Null objects not allowed.forkPoint
- the PointInImage
fork point of the parent
Path
from which the searched path should branch off, or
null if the the path should not have any parent.public Path autoTrace(List<SNTPoint> pointList, PointInImage forkPoint, boolean headless)
protected void replaceCurrentPath(Path path)
protected void finishedPath()
protected void clickForTrace(Point3d p, boolean join)
protected void clickForTrace(double world_x, double world_y, double world_z, boolean join)
protected void clickForTrace(double x_in_pane_precise, double y_in_pane_precise, int plane, boolean join)
public void setFillThresholdFrom(double world_x, double world_y, double world_z)
public void setFillThreshold(double distance) throws IllegalArgumentException
FillerThread
.distance
- the new threshold distance. Set it to -1
to use SNT's
default.IllegalArgumentException
- If distance is not a valid positive valuepublic void setStoreExtraFillNodes(boolean storeExtraFillNodes)
public void setStopFillAtThreshold(boolean stopFillAtThreshold)
protected void addSphere(String name, double x, double y, double z, Color color, double radius)
protected void removeSphere(String name)
protected void startSholl(PointInImage centerScaled)
public ij.ImagePlus getFilledBinaryImp()
public <T extends RealType<T>> ij.ImagePlus getFilledImp()
public ij.ImagePlus getFilledDistanceImp()
public <T extends IntegerType<T>> ij.ImagePlus getFilledLabelImp()
protected int guessResamplingFactor()
protected boolean isUIready()
public void addFillerThread(FillerThread filler)
protected void setFillTransparent(boolean transparent)
public double getMinimumSeparation()
public double getAverageSeparation()
public <T extends RealType<T>> ij.ImagePlus getLoadedDataAsImp()
public <T extends RealType<T>> RandomAccessibleInterval<T> getLoadedData()
protected File getFilteredImageFile()
public boolean isSecondaryDataAvailable()
public boolean isSecondaryImageFileLoaded()
protected boolean inputImageLoaded()
protected boolean isTracingOnSecondaryImageAvailable()
public void setSecondaryImage(File file)
file
- The file containing the 'secondary image'public void loadSecondaryImage(File file) throws IOException, IllegalArgumentException
setSecondaryImage(File)
into
memory as 32-bit data.file
- The file to be loadedIOException
- If image could not be loadedIllegalArgumentException
- if dimensions are unexpected, or image type
is not supportedisSecondaryDataAvailable()
,
getSecondaryDataAsImp()
public void loadSecondaryImage(ij.ImagePlus imp) throws IllegalArgumentException
IllegalArgumentException
public <T extends RealType<T>> void loadSecondaryImage(RandomAccessibleInterval<T> img, boolean computeStatistics)
public void setSecondaryImageMinMax(double min, double max)
public double[] getSecondaryImageMinMax()
protected void loadSecondaryImage(ij.ImagePlus imp, boolean changeUIState)
protected <T extends RealType<T>> void loadSecondaryImage(RandomAccessibleInterval<T> img, boolean changeUIState, boolean computeStatistics)
public void enableSecondaryLayerTracing(boolean enable)
public void flushSecondaryData()
public <T extends NumericType<T>> ij.ImagePlus getSecondaryDataAsImp()
isSecondaryDataAvailable()
,
loadSecondaryImage(ImagePlus)
,
loadSecondaryImage(File)
public <T extends RealType<T>> RandomAccessibleInterval<T> getSecondaryData()
public SNTPrefs getPrefs()
public void proportionDone(double proportion)
proportionDone
in interface HessianGenerationCallback
@Deprecated public void showCorrespondencesTo(File tracesFile, Color c, double maxDistance)
protected void setShowOnlySelectedPaths(boolean showOnlySelectedPaths, boolean updateGUI)
protected void setShowOnlyActiveCTposPaths(boolean showOnlyActiveCTposPaths, boolean updateGUI)
public void setShowOnlySelectedPaths(boolean showOnlySelectedPaths)
public ij.ImagePlus getImagePlus(int pane)
pane
- the flag specifying the view either
MultiDThreePanes.XY_PLANE
,
MultiDThreePanes.XZ_PLANE
or
MultiDThreePanes.ZY_PLANE
.protected ij.ImagePlus getMainImagePlusWithoutChecks()
protected void error(String msg)
protected Component getActiveWindow()
public boolean isOnlySelectedPathsVisible()
protected void updateTracingViewers(boolean includeLegacy3Dviewer)
protected void updateNonTracingViewers()
public void updateAllViewers()
@Deprecated protected Image3DUniverse get3DUniverse()
protected void set3DUniverse(Image3DUniverse universe)
@Deprecated protected void updateImageContent(int resamplingFactor)
protected void setSelectedColor(Color newColor)
protected void setDeselectedColor(Color newColor)
@Deprecated protected void setColorImage(ij.ImagePlus newColorImage)
@Deprecated protected void setPaths3DDisplay(int paths3DDisplay)
@Deprecated protected int getPaths3DDisplay()
public void selectPath(Path p, boolean addToExistingSelection)
public Collection<Path> getSelectedPaths()
public void setSelectedPaths(Collection<Path> selectedPathsSet, Object source)
protected void findSnappingPointInXView(double x_in_pane, double y_in_pane, double[] point)
protected void clickAtMaxPoint(int x_in_pane, int y_in_pane, int plane)
protected void clickAtMaxPoint(int x_in_pane, int y_in_pane, int plane, boolean join)
public void showMIPOverlays(double opacity)
opacity
- (alpha), in the range 0.0-1.0, where 0.0 is none (fully
transparent) and 1.0 is fully opaque. Setting opacity to zero
clears previous MIPs.protected void showMIPOverlays(boolean filteredData, double opacity)
protected void discreteMsg(String msg)
protected void toggleSnapCursor()
public void enableSnapCursor(boolean enable)
enable
- whether cursor snapping should be enabledpublic void enableAutoActivation(boolean enable)
public void enableAutoSelectionOfFinishedPath(boolean enable)
protected boolean isTracingOnSecondaryImageActive()
public void enableAstar(boolean enable)
enable
- true to enable A* search, false otherwisepublic boolean isAstarEnabled()
public boolean is2D()
public void setDrawDiametersXY(boolean draw)
public boolean getDrawDiametersXY()
public void closeAndResetAllPanes()
closeAndResetAllPanes
in class MultiDThreePanes
public Context getContext()
public SNTUI getUI()
public void showStatus(int progress, int maximum, String status)
showStatus
in interface PaneOwner
showStatus
in class MultiDThreePanes
protected double getOneMinusErfZFudge()
public ij.process.ImageStatistics getStats()
public ij.process.ImageStatistics getStatsSecondary()
public void setUseSubVolumeStats(boolean useSubVolumeStatistics)
public boolean getUseSubVolumeStats()
public SNT.SearchType getSearchType()
public void setSearchType(SNT.SearchType searchType)
public SNT.CostType getCostType()
public void setCostType(SNT.CostType costType)
public SNT.HeuristicType getHeuristicType()
public void setHeuristicType(SNT.HeuristicType heuristicType)
public SNT.SearchImageType getSearchImageType()
public void setSearchImageType(SNT.SearchImageType searchImageType)
public SNT.FilterType getFilterType()
public void setFilterType(SNT.FilterType filterType)
public int getWidth()
public int getHeight()
public int getDepth()
public double getPixelWidth()
public double getPixelHeight()
public double getPixelDepth()
public String getSpacingUnits()
public int getChannel()
public int getFrame()
Copyright © 2015–2021 Fiji. All rights reserved.