Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ok I found the solution (It's undocumented)

the 4th param of findHomography returns a vector<uchar> mask where inliners are marked with 255.

Something like:

        for(unsigned int i = 0; i<scene.size();i++) {
            if (!mask[i]) //> Outlier
                circle(frame,scene[i],8,Scalar(0,0,255),3);
        }

Ok I found the solution (It's undocumented)

the 4th param of findHomography returns a vector<uchar> mask where inliners are marked with 255.

Something like:You can use something like to draw outliers

        for(unsigned int i = 0; i<scene.size();i++) {
            if (!mask[i]) //> Outlier
                circle(frame,scene[i],8,Scalar(0,0,255),3);
        }