필터 지우기
필터 지우기

How do i store values of centroid in seperate variables??

조회 수: 2 (최근 30일)
Paranshu
Paranshu 2013년 10월 18일
답변: Walter Roberson 2013년 10월 18일
hblob = vision.BlobAnalysis('AreaOutputPort',false,...
'CentroidOutputPort',true,...
'BoundingBoxOutputPort',true,...
'MaximumBlobArea',5000);
[centroid] = step(hblob,im);
[x0 y0...
x1 y1]=centroid;
It shows an error of too many output arguments

채택된 답변

Walter Roberson
Walter Roberson 2013년 10월 18일
cc = num2cell(centroid);
[x0 y0 x1 y1] = cc{:};

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by