Tilted/aligned bounding rectangle in ImageJ

ANALYZE> Set Measurements… Bounding rectangle

The smallest rectangle enclosing the selection. Is it tilted? Or is it axis-aligned? It don’t know where to find information on that. Thanks in advance.

It’s axis aligned. You can pull the results with List.setMeasurements and re-plot them with makeRectangle to check:

run("Blobs (25K)");
doWand(90, 161, 55.0, "Legacy");
Overlay.addSelection("magenta");

List.setMeasurements;
bx=List.getValue("BX");
by=List.getValue("BY");
w=List.getValue("Width");
h=List.getValue("Height");

makeRectangle(bx, by, w, h);
Overlay.addSelection("yellow");
run("Select None");

And you get this:
blobs

1 Like