Fix a litte bug on matrix subtraction
This commit is contained in:
parent
c21a783646
commit
dff9c0703f
@ -126,9 +126,11 @@ int main(int ac, char ** av)
|
|||||||
imshow("matches - popcount - outliers removed", outimg);
|
imshow("matches - popcount - outliers removed", outimg);
|
||||||
|
|
||||||
Mat warped;
|
Mat warped;
|
||||||
|
Mat diff;
|
||||||
warpPerspective(im2, warped, H, im1.size());
|
warpPerspective(im2, warped, H, im1.size());
|
||||||
imshow("warped", warped);
|
imshow("warped", warped);
|
||||||
imshow("diff", im1 - warped);
|
absdiff(im1,warped,diff);
|
||||||
|
imshow("diff", diff);
|
||||||
waitKey();
|
waitKey();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user