Comments are not coherent with the code. I guess the inversion on the X is an error as usually only Y is inverted as stated in the comment
file match2viewSIFT.m
% translate to center and invert the vertical
SIFTloc_i(1,:) = -(SIFTloc_i(1,:) - size(image_i,2)/2);
SIFTloc_i(2,:) = -(SIFTloc_i(2,:) - size(image_i,1)/2);
same things on file match2viewSURF.m
matchedPtsA = [size(colorA,2)/2-matchedPtsA.Location(:,1) size(colorA,1)/2-matchedPtsA.Location(:,2)];
matchedPtsB = [size(colorB,2)/2-matchedPtsB.Location(:,1) size(colorB,1)/2-matchedPtsB.Location(:,2)];
Hello, Thank you for this excellent SFM example.
Comments are not coherent with the code. I guess the inversion on the X is an error as usually only Y is inverted as stated in the comment
file match2viewSIFT.m % translate to center and invert the vertical SIFTloc_i(1,:) = -(SIFTloc_i(1,:) - size(image_i,2)/2); SIFTloc_i(2,:) = -(SIFTloc_i(2,:) - size(image_i,1)/2);
SIFTloc_j(1,:) = -(SIFTloc_j(1,:) - size(image_j,2)/2); SIFTloc_j(2,:) = -(SIFTloc_j(2,:) - size(image_j,1)/2);
same things on file match2viewSURF.m matchedPtsA = [size(colorA,2)/2-matchedPtsA.Location(:,1) size(colorA,1)/2-matchedPtsA.Location(:,2)]; matchedPtsB = [size(colorB,2)/2-matchedPtsB.Location(:,1) size(colorB,1)/2-matchedPtsB.Location(:,2)];