points = bbox2points(rectangle)
converts the input rectangle, into a list of four [xy] corner points. The rectangle input must
be either a single bounding box or a set of bounding boxes.
Rectangle corner coordinates, returned as a 4-by-2 matrix of
[x,y] coordinates, or a
4-by-2-by-M array of
[x,y] coordinates. The output
points for the rectangle are listed counterclockwise starting from the
upper-left corner.
For a single input bounding box, the function returns the
4-by-2 matrix.
For multiple input bounding boxes, the function returns the
4-by-2-M array for M
bounding boxes.
Data Types: single | double | int16 | int32 | uint16 | uint32
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: United States.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.