gishi523 / stixel-world

An implementation of stixel computation
MIT License
90 stars 37 forks source link

Can't complie #2

Open royanimal opened 6 years ago

royanimal commented 6 years ago

i can't complie the code,and there is bug: main.cpp:67:34: error: ‘create’ is not a member of ‘cv::StereoSGBM’ error: ‘MODE_SGBM_3WAY’ is not a member of ‘cv::StereoSGBM’

could you give me some suggestion?Thank you

gishi523 commented 6 years ago

Hi, Are you using OpenCV version 2.x ?

The implementation of StereoSGBM is different in version 2 and 3.

This code needs version 3. So, easy way is update OpenCV version to 3.

Or, If you still want to use version 2, you need to modify the code. For example, this is sample code from OpenCV 2.4. https://github.com/opencv/opencv/blob/2.4/samples/cpp/stereo_match.cpp

Regards,

royanimal commented 6 years ago

Thank you so much,I fixed it! The result looks good! Could you tell me how to evaluate the results?I just feel the result is good,but I don't know how good it's.I also want to optimize the result.Can you give me some references? Thanks a lot.

Good luck!

gishi523 commented 6 years ago

Hi, evaluation of stixel is discussed in several papers. For example,

Ground Truth Stixel Dataset is also available. http://www.6d-vision.com/ground-truth-stixel-dataset

Regards,