Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

measure depth

hi I want to measure depth with OpenCV Stereo_match algorithms that are available in the examples(Cpp) I use. but Input data can not be detected in below loop:

if (argc < 3)
{
    print_help();
    return 0;
}

Inputs have been introduced in the form below: const char* algorithm_opt = "var"; const char* maxdisp_opt = "1024"; const char* blocksize_opt = "3"; const char* nodisplay_opt = "1"; const char* scale_opt = "1";

and: const char* img1_filename = "left110.jpg"; const char* img2_filename = "right110.jpg"; const char* intrinsic_filename = "C:/Users/farzad/Desktop/camera_calibration/camera_calibration/camera_calibration/intrinsics.yml"; const char* extrinsic_filename = "C:/Users/farzad/Desktop/camera_calibration/camera_calibration/camera_calibration/extrinsics.yml"; const char* disparity_filename = "disparity.jpg"; const char* point_cloud_filename = "point_cloud.xml";

where is the problem from???? thanks.

click to hide/show revision 2
No.2 Revision

updated 2016-09-07 02:00:23 -0600

berak gravatar image

measure depth

hi I want to measure depth with OpenCV Stereo_match algorithms that are available in the examples(Cpp) I use. but Input data can not be detected in below loop:

if (argc < 3)
{
    print_help();
    return 0;
}

Inputs have been introduced in the form below: below:

const  char* algorithm_opt = "var";
 const  char* maxdisp_opt = "1024";
 const  char* blocksize_opt = "3";
 const  char* nodisplay_opt = "1";
 const  char* scale_opt = "1";"1";

and:

and:

const char* img1_filename = "left110.jpg";
 const char* img2_filename = "right110.jpg";
 const char* intrinsic_filename = "C:/Users/farzad/Desktop/camera_calibration/camera_calibration/camera_calibration/intrinsics.yml";
 const char* extrinsic_filename = "C:/Users/farzad/Desktop/camera_calibration/camera_calibration/camera_calibration/extrinsics.yml";
 const char* disparity_filename = "disparity.jpg";
 const char* point_cloud_filename = "point_cloud.xml";

"point_cloud.xml";

where is the problem from???? thanks.