Description Usage Arguments Value
View source: R/image_processing_utils.R
Calculates the vertices of the minimum-area, possibly oriented bounding box given a set of 2D-coordinates. Adapted from shotGroups package.
1 | getMinBBox(xy)
|
xy |
either a numerical (n x 2)-matrix with the (x,y)-coordinates of n >= 2 points (1 row of coordinates per point), or a data frame with either the variables |
A list with the following information about the minimum-area bounding box:
pts |
a (4 x 2)-matrix containing the coordinates of the (ordered) vertices. |
width |
width of the box. |
height |
height of the box. |
FoM |
figure of merit, i.e., the average side length of the box: ( |
diag |
length of box diagonal. |
angle |
orientation of the box' longer edge pointing up as returned by |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.