error meassage in matlab?
11 views (last 30 days)
Show older comments
Error using ==> iptcheckinput Function BWMORPH expected its first input, BW, to be two-dimensional.
Error in ==> bwmorph at 91 iptcheckinput(a,{'numeric' 'logical'},{'real' 'nonsparse' '2d'}, ...
Error in ==> pupil_sclera at 7 mask1=bwmorph(x1>200,'dilate');x1=my_imfill(x1.*(1-mask1));
Error in ==> batch_EI_processing at 28 [a1,a2]=pupil_sclera(x);
please how to fix it? thank you in advance?
0 Comments
Answers (1)
Jan
on 4 Sep 2012
You can use the debugger to find out, why the input "x1" of BWMORPH is not 2 dimensional. Using the debugger is 1. faster and 2. more efficient than posting error messages in the forum, because we do not see your code and do not have your input data. In consequence we can only guess, what's going on.
Se a breakpoint in the line 7 of pupil_sclera, start your program and check the size of the x1. Then inspect the surrounding code to see, why this does not match the requirements. The help section of the code should explain the reuiqred input types and sizes. If the help text is weak or even missing, contact the author and ask for assistance.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!