fix(*) depth cut range change to 0-64.

This commit is contained in:
TinyO 2019-08-22 17:38:32 +08:00
parent 9455ed8a0f
commit f530f94472
2 changed files with 4 additions and 2 deletions

View File

@ -21,8 +21,8 @@ MYNTEYE_BEGIN_NAMESPACE
const char DepthProcessor::NAME[] = "DepthProcessor";
const int DISPARITY_MIN = 0;
const int DISPARITY_MAX = 64;
int DISPARITY_MIN = 0;
int DISPARITY_MAX = 64;
DepthProcessor::DepthProcessor(
std::shared_ptr<struct CameraROSMsgInfoPair> calib_infos,

View File

@ -93,6 +93,8 @@ DisparityProcessor::DisparityProcessor(DisparityComputingMethod type,
bm_matcher->setSpeckleWindowSize(100);
bm_matcher->setSpeckleRange(4);
bm_matcher->setPreFilterType(cv::StereoBM::PREFILTER_XSOBEL);
// DISPARITY_MIN = bm_matcher->getMinDisparity();
// DISPARITY_MAX = bm_matcher->getMinDisparity();
#endif
NotifyComputingTypeChanged(type_);
}