Thanks for your suggestion for changing to double. It took some time for me to work on the code again for some other reasons. Come back if any help needed.
"Steven_Lord" <firstname.lastname@example.org> wrote in message <email@example.com>... > > > "Darren g" <firstname.lastname@example.org> wrote in message > news:email@example.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 > firstname.lastname@example.org > To contact Technical Support use the Contact Us link on > http://www.mathworks.com