MBR
Smallest rectangle that fully encloses a region of interest, providing a bounding box with minimal area.
🎠Mask options and parameters of getMbr
method
🔎 ROI options and parameters of mbr
accessor
Minimum Bounding Rectangle(MBR) is the smallest rectangle which can fit the region of interest in question.
MBR is relevant for such things as extracting features, detecting collisions or simply localizing objects.
In ImageJS minimum bounding rectangle is a ROI class accessor that returns a Mbr
object.
Property name | Description | Property type |
---|---|---|
points | points that form MBR | Point[] |
perimeter | MBR's perimeter | number |
surface | MBR's surface | number |
height | MBR's height | number |
width | MBR's width | number |
angle | MBR's angle | number |
aspectRatio | ratio between MBR's width and height | number |
const mbr = roi.mbr;
It can also be a Mask method to calculate its mbr:
const mbr = mask.getMbr();