using vision.BlobAnalysis to create BLOBs ,

1 回表示 (過去 30 日間)
si sam
si sam 2015 年 9 月 14 日
コメント済み: Dima Lisin 2015 年 11 月 13 日
for detecting motion, i used vision.BlobAnalysis to create BLOBs... and then i wanna know how to extract geometric attribute from each blob : MAJORAXIS, MINORAXIS, ORIENTATION? anyone can help me please

採用された回答

Walter Roberson
Walter Roberson 2015 年 9 月 14 日
Use regionprops() from the Image Processing Toolbox

その他の回答 (1 件)

Dima Lisin
Dima Lisin 2015 年 9 月 15 日
To do that you have to configure the vision.BlobAnalysis object to give you those outputs:
blobAnalyzer = vision.BlobAnalysis('MajorAxisLengthOutputPort', true, ...
'MinorAxisLengthOutputPort', true, 'OrientationOutputPort', true);
Now if you call the step method you will get all those outputs:
[area, centroid, bbox, major, minor, orientation] = step(blobAnalyzer, I);
You can also turn the area, centroid, and bbox outputs off if you don't need them.
  2 件のコメント
syhem samti
syhem samti 2015 年 11 月 13 日
here the message error: " Error using vision.BlobAnalysis/step Too many output arguments; 6 output(s) requested but only 2 output(s) available."
Dima Lisin
Dima Lisin 2015 年 11 月 13 日
Can you post how you create the vision.BlobAnalysis object, and how you call the step() method?

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

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by