From: chirag on 2 Apr 2010 11:23 I am having a problem in my project on iris detection .My project finds the centroid of pupil and its boundary with iris as well as the edge of iris but i am having problems on how to extract the iris from the image of the eye. It is showing errors :- ??? Error using ==> mtimes Inner matrix dimensions must agree. Error in ==> linspace at 22 y = [d1+(0:n-2)*(d2-d1)/(floor(n)-1) d2]; Error in ==> irisbasis at 27 copyv = linspace(rs,re,NCOLS); Error in ==> Main at 14 if anyone can help i will be very thankful to you.
From: us on 2 Apr 2010 11:32 chirag <cchirag88(a)gmail.com> wrote in message <d1da42e3-b7bd-46d6-82ed-f31355220e4d(a)q16g2000yqq.googlegroups.com>... > I am having a problem in my project on iris detection .My project > finds the centroid of pupil and its boundary with iris as well as the > edge of iris but i am having problems on how to extract the iris from > the image of the eye. It is showing errors :- > > ??? Error using ==> mtimes > Inner matrix dimensions must agree. > > Error in ==> linspace at 22 > y = [d1+(0:n-2)*(d2-d1)/(floor(n)-1) d2]; > > Error in ==> irisbasis at 27 > copyv = linspace(rs,re,NCOLS); > > Error in ==> Main at 14 > > if anyone can help i will be very thankful to you. given the sparse information, a wild guess... % this y=[d1+(0:n-2)*(d2-d1)/(floor(n)-1) d2]; % shoudl probably read y=[d1+(0:n-2).*(d2-d1)/(floor(n)-1) d2]; us
From: Steven Lord on 2 Apr 2010 13:03 "us " <us(a)neurol.unizh.ch> wrote in message news:hp52m4$qbs$1(a)fred.mathworks.com... > chirag <cchirag88(a)gmail.com> wrote in message > <d1da42e3-b7bd-46d6-82ed-f31355220e4d(a)q16g2000yqq.googlegroups.com>... >> I am having a problem in my project on iris detection .My project >> finds the centroid of pupil and its boundary with iris as well as the >> edge of iris but i am having problems on how to extract the iris from >> the image of the eye. It is showing errors :- >> >> ??? Error using ==> mtimes >> Inner matrix dimensions must agree. >> >> Error in ==> linspace at 22 >> y = [d1+(0:n-2)*(d2-d1)/(floor(n)-1) d2]; >> >> Error in ==> irisbasis at 27 >> copyv = linspace(rs,re,NCOLS); >> >> Error in ==> Main at 14 >> >> if anyone can help i will be very thankful to you. > > given the sparse information, a wild guess... > > % this > y=[d1+(0:n-2)*(d2-d1)/(floor(n)-1) d2]; > % shoudl probably read > y=[d1+(0:n-2).*(d2-d1)/(floor(n)-1) d2]; What the OP should do, rather than changing the LINSPACE function, is to call LINSPACE with two or three scalar values -- first value, end value, and (optionally) number of points to generate -- rather than nonscalar values for any of those three inputs, as I suspect they're doing. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
|
Pages: 1 Prev: Least-Squares Approximation of FIR by IIR Digital Filters Next: ruler view graph in matlab |