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" <email@example.com> wrote in message <firstname.lastname@example.org>... > > > "Darren g" <email@example.com> wrote in message > news:firstname.lastname@example.org... > > 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 > email@example.com > To contact Technical Support use the Contact Us link on > http://www.mathworks.com