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

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