How are bounding boxes defined in MATLAB?
Ältere Kommentare anzeigen
I extracted bounding box positions from MATLAB's video labeller app. However, I can't seem to understand how the position is formatted. The initial bounding box position shows four numbers, while the rest show 8 numbers.

4 Kommentare
Walter Roberson
am 16 Dez. 2019
In each case, the second row looks to be the same as the first row of the group and so can be removed / ignored.
Swapnil Sayan Saha
am 31 Dez. 2019
Walter Roberson
am 31 Dez. 2019
x and y are used in Cartesian coordinate sense. x is distance along the horizontal axes (left/right) starting from the lower left corner, and y is distance along the vertical (up/down) axes starting from the lower left corner. x corresponds to columns (not rows) and y corresponds to rows (not columns) so you need to reverse x and y if you want to index into an array.
Walter Roberson
am 31 Dez. 2019
Side note: imcrop has an off-by-one in what it crops. If for example you give it the bounding box 1 1 5 5 then instead including only YourMatrix(1:5,1:5,:) it extracts YourMatrix(1:6,1:6,:)
Antworten (0)
Kategorien
Mehr zu Computer Vision Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!