using vision.BlobAnalysis to create BLOBs ,

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일

0 개 추천

Use regionprops() from the Image Processing Toolbox

추가 답변 (1개)

Dima Lisin
Dima Lisin 2015년 9월 15일

1 개 추천

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?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

질문:

2015년 9월 14일

댓글:

2015년 11월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by