Why am i getting this errors below? What does it mean?

Attempted to access bbox(3); index out of bounds because numel(bbox)=0.
Error in InitShape (line 18) a = 0.80*bbox(3)/(max(rshape(1:n))-min(rshape(1:n)));
Error in Demo (line 37) test_init_shape = InitShape(bbox,refShape);

4 件のコメント

dpb
dpb 2014 年 6 月 12 日
Because you don't have anything in the array bbox as the error message says.
Now WHY that might be so is indeterminate since you showed no context. One presumes maybe a file input operation may have failed to return any data and your script/function didn't check for such a failure at the time...but it could be any of a number of other reasons.
The crystal ball is murky, sorry...
Misrak Seifu
Misrak Seifu 2014 年 6 月 12 日
I think it is because i don't have the min and max size of the object i want to detect but i don't know how. Can you help me with that?
dpb
dpb 2014 年 6 月 12 日
Image Analyst
Image Analyst 2014 年 6 月 12 日
We are all eagerly awaiting the arrival of the Mind Reading Toolbox . Until then you'll need to attach your m-file.

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

回答 (1 件)

Roger Wohlwend
Roger Wohlwend 2014 年 6 月 13 日

0 投票

The error means that bbox is empty. That is why you cannot acces bbox(3).

質問済み:

2014 年 6 月 12 日

回答済み:

2014 年 6 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by