CLIJ2

Logo

GPU accelerated image processing for everyone

CLIJ2 home

getBoundingBox

Determines the bounding box of all non-zero pixels in a binary image.

If called from macro, the positions will be stored in the variables ‘boundingBoxX’, ‘boundingBoxY’, ‘boundingBoxZ’, ‘boundingBoxWidth’, ‘boundingBoxHeight’ and ‘boundingBoxDepth’.In case of 2D images Z and depth will be zero.

Category: Measurements

Availability: Available in Fiji by activating the update sites clij and clij2. This function is part of clij2_-2.5.0.1.jar.

getBoundingBox often follows after

Usage in ImageJ macro

Ext.CLIJ2_getBoundingBox(Image source, Number boundingBoxX, Number boundingBoxY, Number boundingBoxZ, Number boundingBoxWidth, Number boundingBoxHeight, Number boundingBoxDepth);

Example notebooks

working_with_rois

Example scripts

boundingBoxes.ijm
getBoundingBox.ijm
working_with_rois.ijm

Back to CLIJ2 reference Back to CLIJ2 documentation

Imprint