|
|
Re: Image rotation detection probelm
Posted:
Dec 12, 2012 1:43 PM
|
|
"Darren g" <darreng212@yahoo.com> wrote in message news:kaaidk$6jc$1@newscl01ah.mathworks.com... > Hi Phillip, > > Would you mean to change the conv2 function within the corresponding > folder. > I tried replacing it with double but now show another error. > > Error: File: conv2.m Line: 1 Column: 26 > Unbalanced or unexpected parenthesis or bracket. > > Error in xcorr2 (line 17) > c = conv2(a, rot90(conj(b),2)); > > Error in translation (line 18) > d = xcorr2(image1,image2);
Revert your changes to CONV2 then change your translation function or script to pass double(image1) and double(image2) into XCORR2 rather than image1 and image2.
-- Steve Lord slord@mathworks.com To contact Technical Support use the Contact Us link on http://www.mathworks.com
|
|