1 | initial version |

You ask about the **mask** output of "findHomography". Here is what I can tell you about.

Actually, even if it is 2-dimensional, there is "n" rows and 1 column. "n" is exactly the number of matches that is present in the "scene" variable of your code. In my case, "scene" is of size = 55, so there are 55 rows in the mask. Some of the bits are at 0 and some are at 1.

You could then "compare" (logical AND) good_matches[i] && mask[i] and you would get which of the good_matches fit (are inliers, 1) in the homography and by extension which ones are the outliers ( 0 ).

If you need more info feel free to ask!

Copyright OpenCV foundation, 2012-2018. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.