Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
Paranshu
Paranshu am 18 Okt. 2013
Beantwortet: Walter Roberson am 18 Okt. 2013
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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 18 Okt. 2013
cc = num2cell(centroid);
[x0 y0 x1 y1] = cc{:};

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by