ImpUtils Class Documentation#

Package: sc.fiji.snt.util

Static utilities for handling and manipulation of ImagePluss

Methods#

Getters Methods#

static getCT(ImagePlus, int, int)
static getChannel(ImagePlus, int)
static getCurrentImage()
static getForegroundRect(ImagePlus, Number)

Returns the cropping rectangle around non-background values.

static getFrame(ImagePlus, int)
static getMIP(Collection)
static getMinMax(ImagePlus)
static getSliceLabels(ImageStack)
static getSystemClipboard(boolean)

Retrieves an ImagePlus from the system clipboard

static isBinary(ImagePlus)
static isPointVisible(ImagePlus, int, int)

Checks if a given point (in image coordinates) is currently visible in an image

static isVirtualStack(ImagePlus)

Setters Methods#

static setLut(ImagePlus, String)

I/O Operations Methods#

static save(ImagePlus, String)

Saves the specified image.

Other Methods#

static applyColorTable(ImagePlus, ColorTable)
static ascii(ImagePlus, boolean, int, int)

Converts the specified image into ascii art.

static binarize(ImagePlus, double, double)
static calibrationToAxes(Calibration, int)
static combineSkeletons(Collection, boolean)
static convertRGBtoComposite(ImagePlus)
static convertTo32bit(ImagePlus)
static convertTo8bit(ImagePlus)
static convertToSimple2D(ImagePlus, int)

Converts the specified image into an easy displayable form, i.e., a non-composite 2D image If the image is a timelapse, only the first frame is considered; if 3D, a MIP is retrieved; if multichannel a RGB version is obtained. The image is flattened if its Overlay has ROIs.

static create(String, int, int, int, int)
static crop(ImagePlus, Number)

Crops the image around non-background values. Does nothing if the image does not have non-background values.

static demo(String)

Returns one of the demo images bundled with SNT image associated with the demo (fractal) tree.

static imageTypeToString(int)
static invertLut(ImagePlus)
static nextZoomLevel(double)
static open(String, String)
static previousZoomLevel(double)
static removeIsolatedPixels(ImagePlus)
static removeSlices(ImageStack, Collection)
static rotate90(ImagePlus, String)

Rotates an image 90 degrees.

static sameCTDimensions(ImagePlus, ImagePlus)
static sameCalibration(ImagePlus, ImagePlus)
static sameXYZDimensions(ImagePlus, ImagePlus)
static toDataset(ImagePlus)
static toImgPlus(ImagePlus)
static toImgPlus3D(ImagePlus, int, int)
static toStack(Collection)
static zoomTo(ImagePlus, Collection)

See Also#