chore(*): processor value style.
This commit is contained in:
parent
83c98a29c8
commit
c06f7cafc5
|
@ -37,6 +37,7 @@ DisparityProcessor::DisparityProcessor(DisparityComputingMethod type,
|
||||||
}
|
}
|
||||||
VLOG(2) << __func__ << ": proc_period=" << proc_period;
|
VLOG(2) << __func__ << ": proc_period=" << proc_period;
|
||||||
int sgbmWinSize = 3;
|
int sgbmWinSize = 3;
|
||||||
|
int numberOfDisparities = 128;
|
||||||
#ifdef WITH_OPENCV2
|
#ifdef WITH_OPENCV2
|
||||||
// StereoSGBM
|
// StereoSGBM
|
||||||
// http://docs.opencv.org/2.4/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html?#stereosgbm
|
// http://docs.opencv.org/2.4/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html?#stereosgbm
|
||||||
|
@ -75,7 +76,7 @@ DisparityProcessor::DisparityProcessor(DisparityComputingMethod type,
|
||||||
sgbm_matcher->setP1(8 * sgbmWinSize * sgbmWinSize);
|
sgbm_matcher->setP1(8 * sgbmWinSize * sgbmWinSize);
|
||||||
sgbm_matcher->setP2(32 * sgbmWinSize * sgbmWinSize);
|
sgbm_matcher->setP2(32 * sgbmWinSize * sgbmWinSize);
|
||||||
sgbm_matcher->setMinDisparity(0);
|
sgbm_matcher->setMinDisparity(0);
|
||||||
sgbm_matcher->setNumDisparities(64);
|
sgbm_matcher->setNumDisparities(numberOfDisparities);
|
||||||
sgbm_matcher->setUniquenessRatio(10);
|
sgbm_matcher->setUniquenessRatio(10);
|
||||||
sgbm_matcher->setSpeckleWindowSize(100);
|
sgbm_matcher->setSpeckleWindowSize(100);
|
||||||
sgbm_matcher->setSpeckleRange(32);
|
sgbm_matcher->setSpeckleRange(32);
|
||||||
|
@ -89,7 +90,7 @@ DisparityProcessor::DisparityProcessor(DisparityComputingMethod type,
|
||||||
bm_matcher->setPreFilterCap(31);
|
bm_matcher->setPreFilterCap(31);
|
||||||
bm_matcher->setBlockSize(15);
|
bm_matcher->setBlockSize(15);
|
||||||
bm_matcher->setMinDisparity(0);
|
bm_matcher->setMinDisparity(0);
|
||||||
bm_matcher->setNumDisparities(128);
|
bm_matcher->setNumDisparities(numberOfDisparities);
|
||||||
bm_matcher->setUniquenessRatio(60);
|
bm_matcher->setUniquenessRatio(60);
|
||||||
bm_matcher->setTextureThreshold(10);
|
bm_matcher->setTextureThreshold(10);
|
||||||
bm_matcher->setSpeckleWindowSize(100);
|
bm_matcher->setSpeckleWindowSize(100);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user