"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.