フィルターのクリア

Bounding Box set by parameters

2 ビュー (過去 30 日間)
Gytis Raudonius
Gytis Raudonius 2016 年 4 月 5 日
回答済み: Image Analyst 2016 年 4 月 5 日
Hi, how i can set bounding box if i need that recantagle be then width are biger then height. Sorry for my english. Also add image too easy understand my question.

回答 (1 件)

Image Analyst
Image Analyst 2016 年 4 月 5 日
Call regionprops():
measurements = regionprops(logical(binaryImage), 'BoundingBox');
bBox = measurements.BoundingBox;
hold on;
rectangle('Position', bBox, 'EdgeColor', 'r');

カテゴリ

Help Center および File ExchangeImage Segmentation and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by