Ask Your Question

ed3dalltime's profile - activity

2018-12-13 20:36:14 -0500 received badge  Popular Question (source)
2014-02-14 14:54:06 -0500 asked a question Lines recognition in opencv

Hello everybody.

I have a problem where I need to recognize some lines inside a bmp image.

I am able to get some matches from the image and I am trying to reject the bad matches.

For example I have to reject this match:

image description

while I have to accept this match:

image description

I am not looking for the solution, I just want to ask if there is or not some method to check if a set of points is an approximation of a line, or if there is some method/algorithm that can be useful to solve my problem.

Thank you for any advice ;)

2013-12-11 09:53:33 -0500 asked a question Rectification problem stereo vision

Hello everybody.

I have a problem with my code. I am trying create a 3d model with stereo vision. With one of the two test dataset, everything works fine and I am able to build the 3d model. With the second dataset I have some problem in the rectification.

here there is for example the normal left image: image description

Here the rectified image: image description

And here the code for calibration and rectification:

cv::stereoCalibrate(objectPoints, imagePoints_l, imagePoints_r,
        cameraMatrix_l, distCoeffs_l, cameraMatrix_r, distCoeffs_r,
        imageSize, R, T, E, F, TermCriteria(CV_TERMCRIT_ITER + CV_TERMCRIT_EPS, 100, 1e-5),
        CV_CALIB_FIX_INTRINSIC);

where I set CV_CALIB_FIX_INTRINSIC because I calibrated separately the two cameras.

cv::stereoRectify(cameraMatrix_l, distCoeffs_l, cameraMatrix_r, distCoeffs_r, imageSize, R, T, R1, R2, P1, P2, Q, 0, 0);

For stereo rectification.

remap(leftImg, undistortedLeftImg, map1_l, map2_l, INTER_LINEAR);
remap(rightImg, undistortedRightImg, map1_r, map2_r, INTER_LINEAR);

For remapping

Is it possible that the wrong rectifications depends on low quality calibration images?

Thank you very much!!

2013-11-27 02:13:24 -0500 received badge  Student (source)
2013-11-26 15:13:13 -0500 commented question StereoSGBM Help

It was exactly my problem. Thank you ;)

2013-11-26 09:12:22 -0500 received badge  Editor (source)
2013-11-26 09:10:27 -0500 asked a question StereoSGBM Help

Hello everybody. I have a problem in compiling StereoSGBM class.

I am trying to create one instance of the SGBM class. I found some tutorials on Google, but it seems that I misunderstood something:

The problem are these lines:

StereoSGBM sgbm;
sgbm(g1, g2, disp);

where g1 and g2 are the CV_8UC1 images and disp is the disparity map. The error I get from the compiler is

/home/name/NetBeansProjects/ED3D/main.cpp: In function ‘int main(int, char**)’:
/home/name/NetBeansProjects/ED3D/main.cpp:122:16: error: cannot declare variable ‘sgbm’ to be of abstract type ‘cv::StereoSGBM’

Thank you for any advice ;)