opencv - Finding right point matches using RANSAC -


i have 2 images. each has 8 points corners of 2 squares in each image. need find corresponding correct matches between them. so, when pass 64 possible combinations of matches ransac (findfundamentalmatrix), gave me 7 matches suppose inliers but, turned out wrong matches.

i have been scratching head since many days trying figure out wrong. since new opencv, need figuring out.

thanks

for solve problem in first use findhomography() compute rotation value in last use perspectivetransform() transform input points original points.

  point2f first_8_points[8],second_8_points[8];   mat h = findhomography(first_8_points, second_8_points, cv_ransac );   float roatation =  acos( h.at<double>(0,0)) * 180/cv_pi;   perspectivetransform( first_8_points, second_8_points, h); 

Comments

Popular posts from this blog

pentaho - Carte Status / Kettle Slave Server Status page shows status for random runs instead of the latest run -

R summary function in ddply (plyr) in a simple way -

c# - Are delegates created via lambda expressions guaranteed to be cached? -