#include <visp/vpDisplayOpenCV.h>
#include <visp/vpHomography.h>
#include <visp/vpKeyPointSurf.h>
#include <visp/vpPixelMeterConversion.h>
#include <visp/vpVideoReader.h>
int main(int argc, const char **argv)
{
#if defined(VISP_HAVE_OPENCV_NONFREE) && defined(VISP_HAVE_FFMPEG)
int method = 0;
if (argc > 1)
method = atoi(argv[1]);
if (method == 0)
std::cout << "Uses Ransac to estimate the homography" << std::endl;
else
std::cout << "Uses a robust scheme to estimate the homography" << std::endl;
corner_ref[0].
set_ij(115, 64);
corner_ref[1].
set_ij( 83, 253);
corner_ref[2].
set_ij(282, 307);
corner_ref[3].
set_ij(330, 72);
for (unsigned int i=0; i<4; i++) {
}
{
std::vector<vpImagePoint> iPref(nbMatch), iPcur(nbMatch);
std::vector<double> mPref_x(nbMatch), mPref_y(nbMatch);
std::vector<double> mPcur_x(nbMatch), mPcur_y(nbMatch);
std::vector<bool> inliers(nbMatch);
for (unsigned int i = 0; i < nbMatch; i++) {
iPref[i] = matched_ref;
iPcur[i] = matched_cur;
}
double residual;
if (method == 0)
mPref_x.size()/2, 2.0/cam.
get_px(),
true);
else
0.4, 4, true);
for (int i=0; i< 4; i++) {
}
for (int i=0; i< 4; i++) {
corner_cur[i] + offset,
corner_cur[(i+1)%4] + offset,
}
for (unsigned int i = 0; i < nbMatch; i++) {
if(inliers[i] == true)
else
}
break;
}
#else
(void)argc; (void)argv;
#endif
return 0;
}