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);
}
2 | No.2 Revision |
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);
}