how to find feature point (2D) in homogeneous coordinate?

asked 2018-09-09 01:52:12 -0600

ADI gravatar image

i was estimate the fundamental matrix and i wanna prove that X and X' both are corresponding point for that i need X & X' both are in homogeneous for the X^t * F * X' = 0; how I'll estimate feature point in homogeneous coordinate. please help me..

edit retag flag offensive close merge delete

Comments

sorry, but this is "too abstract". show some real life code & data.

berak gravatar imageberak ( 2018-09-09 02:15:10 -0600 )edit

vector<point2f> pointsL(x, y), pointsR; vector<int> queryIdxs( matches.size() ), trainIdxs( matches.size()); for( size_t i = 0; i < matches.size(); i++ ) { pointsL(x, y).push_back(keyL[matches[i].queryIdx].pt); pointsR.push_back(keyR[matches[i].trainIdx].pt); }

Mat F = findFundamentalMat(pointsL, pointsR, FM_RANSAC, 3, 0.99);

Matx31f homo_L(pointsL.x, pointsL.y, 1);

}

this the code for fundamental matrix and converting 2D point into homogeneous coordinate

ADI gravatar imageADI ( 2018-09-10 00:22:59 -0600 )edit