Visualization Methods#
Methods that create visual representations, plots, or graphical displays.
Total methods in this category: 26
AllenCompartment#
- color()#
Signature:
color() -> ColorRGBReturns: (
Any) the display color of this compartment (if known)
Annotation3D#
- colorCode(arg0, arg1)#
Signature:
colorCode(String, String) -> voidParameters:
arg0 (
str): - one of COLORMAPS, i.e., “grayscale”, “hotcold”, “rgb”, “redgreen”, “whiteblue”, etc.arg1 (
str)
Returns:
None
ColorMaps#
- static discreteColors(arg0, arg1)
Signature:
static discreteColors(ColorTable, int) -> ColorRGB;Parameters:
arg0 (
Any)arg1 (
int)
Returns:
Any
- static discreteColorsAWT(arg0, arg1)
Signature:
static discreteColorsAWT(ColorTable, int) -> Color;Parameters:
arg0 (
Any)arg1 (
int)
Returns:
Any
- static glasbeyColorsAWT(arg0)
Signature:
static glasbeyColorsAWT(int) -> Color;Parameters:
arg0 (
int)
Returns:
Any
ImpUtils#
- static applyColorTable(arg0, arg1)
Signature:
static applyColorTable(ImagePlus, ColorTable) -> voidParameters:
arg0 (
Any)arg1 (
Any)
Returns:
None
InsectBrainCompartment#
- color()#
Signature:
color() -> ColorRGBReturns: (
Any) the display color of this compartment (if known)
MultiViewer3D#
- viewers()#
Signature:
viewers() -> ListReturns:
List[Any]
NodeProfiler#
- preview()#
Signature:
preview() -> voidReturns:
None
PathProfiler#
- preview()#
Signature:
preview() -> voidReturns:
None
SNT#
- captureView(arg0, arg1)#
Retrieves a WYSIWYG ‘snapshot’ of a tracing canvas without voxel data.
Signature:
captureView(String, ColorRGB) -> ImagePlusParameters:
arg0 (
str): - A case-insensitive string specifying the canvas to be captured. Either “xy” (or “main”), “xz”, “zy” or “3d” (for legacy’s 3D Viewer).arg1 (
Any)
Returns: (
Any) the snapshot capture of the canvas as an RGB image
SNTColor#
- color()#
Retrieves the AWT color
Signature:
color() -> ColorReturns: (
Any) the AWT color
- static alphaColor(arg0, arg1)
Adds an alpha component to an AWT color.
Signature:
static alphaColor(Color, double) -> ColorParameters:
arg0 (
Any): - the input colorarg1 (
float)
Returns: (
Any) the color with an alpha component
- static colorToString(arg0)
Returns the color encoded as hex string with the format #rrggbbaa.
Signature:
static colorToString(Object) -> StringParameters:
arg0 (
Any): - the input AWT color
Returns: (
str) the converted string
- static contrastColor(arg0)
Returns a suitable ‘contrast’ color.
Signature:
static contrastColor(Color) -> ColorParameters:
arg0 (
Any): - the input color
Returns: (
Any) Either white or black, as per hue of input color.
- static getDistinctColors(arg0)
Returns distinct colors based on Kenneth Kelly’s 22 colors of maximum contrast (black and white excluded). More details on this SO discussion
Signature:
static getDistinctColors(int) -> ColorRGB;Parameters:
arg0 (
int): - the number of colors to be retrieved
Returns: (
Any) the maximum contrast colors
- static getDistinctColorsAWT(arg0)
Signature:
static getDistinctColorsAWT(int) -> Color;Parameters:
arg0 (
int)
Returns:
Any
- static getDistinctColorsHex(arg0, arg1)
Signature:
static getDistinctColorsHex(int, String) -> String;Parameters:
arg0 (
int)arg1 (
str)
Returns:
Any
SNTService#
- newRecViewer(arg0)#
Instantiates a new standalone Reconstruction Viewer.
Signature:
newRecViewer(boolean) -> Viewer3DParameters:
arg0 (
bool)
Returns: (
Viewer3D) The standalone Viewer3D instance
- updateViewers()#
Script-friendly method for updating (refreshing) all viewers currently in use by SNT. Does nothing if no SNT instance exists.
Signature:
updateViewers() -> voidReturns:
None
SNTUtils#
- static addViewer(arg0)
Signature:
static addViewer(Viewer3D) -> voidParameters:
arg0 (
Viewer3D)
Returns:
None
- static removeViewer(arg0)
Signature:
static removeViewer(Viewer3D) -> voidParameters:
arg0 (
Viewer3D)
Returns:
None
Tree#
- static assignUniqueColors(arg0)
Assigns distinct colors to a collection of Trees.
Signature:
static assignUniqueColors(Collection) -> voidParameters:
arg0 (
List[Any]): - an optional string defining a hue to be excluded. Either ‘red’, ‘green’, or ‘blue’.
Returns:
None
Viewer3D#
- assignUniqueColors(arg0)#
Signature:
assignUniqueColors(Collection) -> voidParameters:
arg0 (
List[Any])
Returns:
None
- colorCode(arg0, arg1, arg2)#
Runs TreeColorMapper on the specified Tree.
Signature:
colorCode(Collection, String, ColorTable) -> [DParameters:
arg0 (
List[Any]): - the identifier of the Tree (as per addTree(Tree))to be color mappedarg1 (
str)arg2 (
Any)
Returns: (
Any) the double[] the limits (min and max) of the mapped values
WekaModelLoader#
- preview()#
Signature:
preview() -> voidReturns:
None
Category index generated on 2026-01-02 23:09:09