face detection thru viola zones
Show older comments
Attempted to access Face(2); index out of bounds because numel(Face)=1.
Error in TestFaceDetection (line 9) Rectangle = [Face(1) Face(2); Face(1)+Face(3) Face(2); Face(1)+Face(3) Face(2)+Face(4); Face(1) Face(2)+Face(4); Face(1) Face(2)];
1 Comment
Jan
on 22 Jul 2013
I have deleted the duplicate post. Please, abukaf, do not post a question twice.
Answers (1)
Jan
on 22 Jul 2013
0 votes
The error message is clear: You try to access Face(2) (and even Face(4) later on), but this variable contains a single element only. So you have to look for the reason, why Face is a scalar. But the shown message does not contain any information to help you at this examination.
Categories
Find more on Shifting and Sorting Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!