Ask Your Question

mirnyy's profile - activity

2020-11-02 00:51:26 -0600 received badge  Popular Question (source)
2020-08-12 23:07:11 -0600 received badge  Popular Question (source)
2018-12-02 21:29:56 -0600 marked best answer Implementing SGBM block matcher in CUDA

Hello,

i just wanted to ask about your advise.

I need to use the SGBM (semi-global block matcher) to get a accurate disparity map. The SBM (stereo block matcher) is delivering quite bad and unuseful results.

The problem is just, that it seems that SGBM is not implemented in OpenCV CUDA yet (but the SBM).
But i need the SGBM to work faster (for example on the GPU).
Would you say it is possible to implement it in CUDA in a few days with not much experience in CUDA C programming?
And is it btw a good idea to implement it, or are the for example already good alternatives for it?

2018-06-27 09:23:32 -0600 edited question Good 3D-Viewer (for PointCloud + Camera Pose) Recommends?

Good 3D-Viewer (for PointCloud + Camera Pose) Recommends? Hey, does anyone know a good 3D-Viewer (similar to viz-mod

2018-06-27 09:23:27 -0600 edited question Good 3D-Viewer (for PointCloud + Camera Pose) Recommends?

Good 3D-Viewer (for PointCloud + Camera Pose) Recommends? Hey, does anyone know a good 3D-Viewer (similar to viz-mod

2018-06-27 09:22:45 -0600 edited question Good 3D-Viewer (for PointCloud + Camera Pose) Recommends?

Good 3D-Viewer (for PointCloud + Camera Pose) Recommends? Hey, does anyone know a good 3D-Viewer (similar to viz-mod

2018-06-27 09:22:31 -0600 edited question Good 3D-Viewer (for PointCloud + Camera Pose) Recommends?

Good 3D-Viewer (for PointCloud + Camera Pose) Hey, does anyone know a good 3D-Viewer (similar to viz-module in OpenCV,

2018-06-27 09:22:19 -0600 edited question Good 3D-Viewer (for PointCloud + Camera Pose) Recommends?

Good 3D-Viewer (for PointCloud + Camera Pose) Hey, does anyone know a good 3D-Viewer (similar to viz-module in OpenCV,

2018-06-27 09:21:33 -0600 edited question Good 3D-Viewer (for PointCloud + Camera Pose) Recommends?

Good 3D-Viewer (for PointCloud + Camera Pose) Hey, does anyone know a good 3D-Viewer (similar to viz-module in OpenCV,

2018-06-27 09:20:18 -0600 edited question Good 3D-Viewer (for PointCloud + Camera Pose) Recommends?

Good 3D-Viewer (for PointCloud + Camera Pose) Hey, does anyone know a good 3D-Viewer (similar to viz-module in OpenCV,

2018-06-27 09:20:04 -0600 edited question Good 3D-Viewer (for PointCloud + Camera Pose) Recommends?

Good 3D-Viewer (for PointCloud + Camera Pose) Hey, does anyone know a good 3D-Viewer (similar to viz-module in OpenCV,

2018-06-27 09:17:34 -0600 asked a question Good 3D-Viewer (for PointCloud + Camera Pose) Recommends?

Good 3D-Viewer (for PointCloud + Camera Pose) Hey, does anyone know a good 3D-Viewer (similar to viz-module in OpenCV,

2018-02-01 06:02:40 -0600 edited question Picking 3D points in Viz

Picking 3D points in Viz Hey, is it possible to pick points in Viz? I already have callback method for getting the pos

2018-02-01 06:02:24 -0600 edited question Picking 3D points in Viz

Picking 3D points in Viz Hey, is it possible to pick points in Viz? I already have callback method for getting the pos

2018-02-01 06:01:43 -0600 edited question Picking 3D points in Viz

Picking 3D points in Viz Hey, is it possible to pick points in Viz? I already have callback method for getting the pos

2018-02-01 06:01:36 -0600 edited question Picking 3D points in Viz

Picking 3D points in Viz Hey, is it possible to pick points in Viz? I already have callback method for getting the posi

2018-02-01 06:01:10 -0600 asked a question Picking 3D points in Viz

Picking 3D points in Viz Hey, is it possible to pick points in Viz? I already have callback method for getting the posi

2017-11-15 08:32:52 -0600 edited answer Sfm (with bundle adjustment) in Real-Time?

Anybody can help?

2017-11-15 08:32:22 -0600 answered a question Sfm (with bundle adjustment) in Real-Time?

pushpushpush

2017-11-15 08:31:45 -0600 commented answer CUDA StereoBM setMinDisparity-Function

Hello, it helped me (at least now i know that the function doesn't use the "minDisparity" value), but i still need to us

2017-11-15 08:27:37 -0600 answered a question Sfm (with bundle adjustment) in Real-Time?

pushpushpush

2017-11-13 06:18:45 -0600 commented question Sfm (with bundle adjustment) in Real-Time?

But would it still make sense to implement the SFM algorithm in real time? Because the SFM algorithm is delivering more

2017-11-13 06:11:46 -0600 commented question Sfm (with bundle adjustment) in Real-Time?

But would it be nonsense to implement the SFM algorithm in real time?

2017-11-07 06:40:14 -0600 answered a question Sfm (with bundle adjustment) in Real-Time?

I dont mean the SFM module inside OpenCV... I mean in general the SFM algorithm (maybe own implementation) with bundle a

2017-11-05 13:14:41 -0600 asked a question Sfm (with bundle adjustment) in Real-Time?

Sfm (with bundle adjustment) in Real-Time? Hello, is the structure from motion algorithm (which involves bundle adjustm

2017-10-02 08:04:59 -0600 commented answer projectPoints() Wrong results??

Ah, thank you! Thank was the problem!

2017-10-02 06:37:21 -0600 edited question projectPoints() Wrong results??

projectPoints() Wrong results?? Why is my code snippet giving me weird results for projected points? //Generate the one

2017-10-02 06:36:52 -0600 edited question projectPoints() Wrong results??

projectPoints() Wrong results?? Why is my code snippet giving me weird results for projected points? //Generate the one

2017-10-02 06:36:30 -0600 edited question projectPoints() Wrong results??

projectPoints() Wrong results?? Why is my code snippet giving me weird results for projected points? //Generate the 3D

2017-10-02 06:35:48 -0600 edited question projectPoints() Wrong results??

projectPoints() Wrong results?? Why is my code snippet giving me weird results for projected points? //Generate the 3D

2017-10-02 06:31:54 -0600 edited question projectPoints() Wrong results??

projectPoints() Wrong results?? Why is my code snippet giving me weird results for projected points? //Generate the 3D

2017-10-02 06:24:26 -0600 edited question projectPoints() Wrong results??

projectPoints() Wrong results?? Why is my code snippet giving me weird results for projected points? vector<Point3d&

2017-10-02 06:23:27 -0600 asked a question projectPoints() Wrong results??

projectPoints() Wrong results?? Why is my code snippet giving my weird results for projected points? vector<Point3d&

2017-09-28 12:46:41 -0600 edited question What is solvePnP() exactly for? (while i already have the projection matrices P)

What is solvePnP() exactly for? (while i already have the projection matrices P) I already know that solvePnP() finds th

2017-09-28 12:32:26 -0600 edited question What is solvePnP() exactly for? (while i already have the projection matrices P)

What is solvePnP() exactly for? I already know that solvePnP() finds the position (rotation and translation) of the came

2017-09-28 12:31:37 -0600 edited question What is solvePnP() exactly for? (while i already have the projection matrices P)

What is solvePnP() exactly for? I already know that solvePnP() finds the position (rotation and translation) of the came

2017-09-28 12:30:23 -0600 edited question What is solvePnP() exactly for? (while i already have the projection matrices P)

What is solvePnP() exactly for? I already know that solvePnP() finds the position (rotation and translation) of the came

2017-09-28 12:27:55 -0600 asked a question What is solvePnP() exactly for? (while i already have the projection matrices P)

What is solvePnP() exactly for? I already know that solvePnP() finds the position (rotation and translation) of the came

2017-09-28 11:59:31 -0600 commented answer Computing disparity map is very SLOW!

Thank you very much for your answer. To 1. I try to get a 3D reconstruction with the highest resolution, so resizing t

2017-09-28 11:58:22 -0600 commented answer Computing disparity map is very SLOW!

Thank you very much for your answer. To 1. I try to get a 3D reconstruction with the highest resolution, so resizing t

2017-09-28 11:57:23 -0600 commented answer Computing disparity map is very SLOW!

Thank you very much for your answer. I try to get a 3D reconstruction with the highest resolution, so resizing the ima

2017-09-28 11:56:53 -0600 commented answer Computing disparity map is very SLOW!

Thank you very much for your answer. I try to get a 3D reconstruction with the highest resolution, so resizing the ima

2017-09-01 06:25:01 -0600 edited question 3D reconstruction (SFM) with multi-lens camera system (instead of pinhole camera model)

3D reconstruction (SFM) with multi-lens camera system (instead of pinhole camera model) 3D reconstruction (especially SF

2017-09-01 06:24:40 -0600 edited question 3D reconstruction (SFM) with multi-lens camera system (instead of pinhole camera model)

3D reconstruction (SFM) with multi-lens camera system (instead of pinhole camera model) 3D reconstruction (especially SF

2017-09-01 06:24:13 -0600 asked a question 3D reconstruction (SFM) with multi-lens camera system (instead of pinhole camera model)

3D reconstruction (SFM) with multi-lens camera system (instead of pinhole camera model) 3D reconstruction (especially SF

2017-07-03 10:08:29 -0600 edited question Different undistorting results (first rotate, then undistort OR first undistort, then rotate)

Hello,

i don't know why, but i get different results if i first rotate the image and undistort it, or if i first undistort and then rotate it.
There is a very small difference at both results... (In the middle of the image it seems to be same, but at the upper and lower borders of the images the difference is higher)

My minimal code is shown below:

Mat camera_matrix, distCoeffs;

char* out_file = "C:\\Users\\Bob\\Documents\\Visual Studio 2013\\Projects\\Samples\\camera.txt";

FileStorage fs(out_file, FileStorage::READ);
fs["K"] >> camera_matrix;
fs["D"] >> distCoeffs;


//Reading the images
Mat image1 = imread("C:\\Users\\Bob\\Documents\\Visual Studio 2013\\Projects\\Samples\\1.jpg");
Mat image2 = imread("C:\\Users\\Bob\\Documents\\Visual Studio 2013\\Projects\\Samples\\2.jpg");

Mat image1_undistorted, image2_undistorted;
Mat image1_rot, image2_rot, image1_flip, image2_flip;



//First workflow (first undistort image, then turn)
///////////////////////////////////////////////////////////////////////

undistort(image1, image1_undistorted, camera_matrix, distCoeffs);
undistort(image2, image2_undistorted, camera_matrix, distCoeffs);

transpose(image1_undistorted, image1_rot);
flip(image1_rot, image1_undistorted, 0);
transpose(image2_undistorted, image2_rot);
flip(image2_rot, image2_undistorted, 0);

imwrite("image1_undistorted_FIRSTWORKFLOW.jpg", image1_undistorted);
imwrite("image2_undistorted_FIRSTWORKFLOW.jpg", image2_undistorted);



//Second workflow (first turn image, then undistort)
///////////////////////////////////////////////////////////////////////

//Adjusting the camera matrix and distortion coefficients
double fx = camera_matrix.at<double>(0, 0);
double fy = camera_matrix.at<double>(1, 1);
double cx = camera_matrix.at<double>(0, 2);
double cy = camera_matrix.at<double>(1, 2);

camera_matrix.at<double>(0, 0) = fy;
camera_matrix.at<double>(1, 1) = fx;
camera_matrix_new.at<double>(0, 2) = cy;
camera_matrix_new.at<double>(1, 2) = image1.size().width - cx;

double p1 = distCoeffs.at<double>(0, 2);
double p2 = distCoeffs.at<double>(0, 3);

distCoeffs.at<double>(0, 2) = p2;
distCoeffs.at<double>(0, 3) = p1;


transpose(image1, image1_rot);
flip(image1_rot, image1_flip, 0);
transpose(image2, image2_rot);
flip(image2_rot, image2_flip, 0);

undistort(image1_flip, image1_undistorted, camera_matrix, distCoeffs, Mat());
undistort(image2_flip, image2_undistorted, camera_matrix, distCoeffs, Mat());

imwrite("image1_undistorted_SECONDWORKFLOW.jpg", image1_undistorted);
imwrite("image2_undistorted_SECONDWORKFLOW.jpg", image2_undistorted);

The results are shown below:

The first image (both workflow results)
image1_undistorted_FIRSTWORKFLOW.jpg image1_undistorted_SECONDWORKFLOW.jpg

The second image (both workflow results)
image2_undistorted_FIRSTWORKFLOW.jpg image2_undistorted_SECONDWORKFLOW.jpg

---------------------------------------------------------------------------------------------------------------------------------------

And if i calculate the differences of the images resulting from the different workflows, then i get these:

image1_undistorted_FIRSTWORKFLOW - image1_undistorted_SECONDWORKFLOW = Subtracted image1

image2_undistorted_FIRSTWORKFLOW - image2_undistorted_SECONDWORKFLOW = Subtracted image2

You can see the in the middle of the "difference images" it seems to be there is no difference...
But on the up and down side of the "difference image" there is a bigger difference...

Can someone tell me what im doing wrong? Or why i get different results in both workflows?

2017-07-03 10:08:05 -0600 received badge  Associate Editor (source)