How are bounding boxes defined in MATLAB?

3 ビュー (過去 30 日間)
Swapnil Sayan Saha
Swapnil Sayan Saha 2019 年 12 月 15 日
コメント済み: Walter Roberson 2019 年 12 月 31 日
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.
Clipboard01.jpg
  4 件のコメント
Walter Roberson
Walter Roberson 2019 年 12 月 31 日
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
Walter Roberson 2019 年 12 月 31 日
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,:)

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeImage and Video Ground Truth Labeling についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by