Commit dff9c070 authored by Stefano Fabri's avatar Stefano Fabri

Fix a litte bug on matrix subtraction

parent c21a7836
...@@ -126,9 +126,11 @@ int main(int ac, char ** av) ...@@ -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;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment