Ask Your Question

TSL_'s profile - activity

2020-09-28 16:57:13 -0600 received badge  Notable Question (source)
2018-10-28 00:56:37 -0600 edited question unexpected large reprojection error returned by solvePnPRansac

unexpected large reprojection error returned by solvePnPRansac hi, is it an expected behaviour when solvePnPRansac retu

2018-10-28 00:53:18 -0600 commented question unexpected large reprojection error returned by solvePnPRansac

I try different algorithm than the default, SOLVEPNP_EPNP instead of default SOLVEPNP_ITERATIVE. This case, the reprojec

2018-10-28 00:53:00 -0600 asked a question unexpected large reprojection error returned by solvePnPRansac

unexpected large reprojection error returned by solvePnPRansac hi, is it an expected behaviour when solvePnPRansac retu

2015-12-02 16:43:27 -0600 received badge  Popular Question (source)
2014-09-25 19:48:36 -0600 commented answer cmake OpenCV_DIR

I have followed the same instructions. In cmd line, and also in "System properties>environment variables" with the correct value I have set OPENCV_DIR="mydir". But when I run CMake to configure my project, library directory is pointing to another location. Is there any way to fix this? is this Windows problem? I'm using win7 32b

2013-01-12 03:13:54 -0600 asked a question template initialization of opencv Mat from 2dVector

Hi,

I'm writing a function with some lines to convert from a 2d STL vector to OpenCV Mat. Since, OpenCV supports Mat initialization from vector with Mat(vector). But this time, I try a 2D vector and not successful.

the function is simple like:

template <class NumType>
Mat Vect2Mat(vector<vector<NumType>> vect)
{
    Mat mtx = Mat(vect.size(), vect[0].size(), CV_64F, 0);  // don't need to init??
    //Mat mtx;

    // copy data
    for (int i=0; i<vect.size(); i++)
        for (int j=0; j<vect[i].size(); j++)
        {
            mtx.at<NumType>(i,j) = vect[i][j];
            //cout << vect[i][j] << " ";
        }   

    return mtx;
}

So is there a way to initalize Mat mtx accordingly with NumType?? the syntax is always fixed with CV_32F, CV_64F, .... and therefore, very restricted

Thank you!

2012-10-15 01:59:50 -0600 received badge  Self-Learner (source)
2012-10-15 01:53:12 -0600 received badge  Editor (source)
2012-10-15 01:51:54 -0600 answered a question using Kalman Filter

actually, I've found the answer from reading source code that implements KalmanFilter algorithm. The code is in module video/kalman.cpp which clearly defines what DynamParam, MeasureParam, ControlParam are and how the matrices are defined

2012-10-15 01:50:03 -0600 received badge  Scholar (source)
2012-10-15 01:48:45 -0600 commented answer using Kalman Filter

the mouse tracking is cool, man!! :D. and I also believe it does not work with 2D matrcies

2012-10-15 01:47:48 -0600 received badge  Supporter (source)
2012-10-10 05:46:58 -0600 received badge  Student (source)
2012-10-08 07:17:15 -0600 asked a question using Kalman Filter

Hi folks,

I write a project to track points with Kalman Filter. There are 4 points, each with x,y coordinates. So, in my case, it's neater if I use a 2x4 Mat as state or measurement matrices.

OpenCV Kalman FIlter works well with 1D Mats as matrices. But in my case, it crashes.

Is this because OpenCV Kalman Filter doesn't work with 2D matrices??

OpenCV documentation does not tell clearly about this. Anyone has tried, plz give me a hint