Fix to use mMinDisparity in StereoSGBM::create()
authorTae-Young Chung <ty83.chung@samsung.com>
Fri, 22 Oct 2021 07:00:00 +0000 (16:00 +0900)
committer엘무럿/선행S/W Lab(생활가전)/Principal Engineer/삼성전자 <e.talipov@samsung.com>
Tue, 14 Dec 2021 02:21:04 +0000 (11:21 +0900)
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
src/dfs_opencv.cpp

index 916fea4..055f956 100644 (file)
@@ -161,7 +161,7 @@ namespace DfsAdaptationImpl
 
                mDfsParam = param;
                mImageSize = cv::Size(width, height);
-               mDfsOcv = cv::StereoSGBM::create(1, mNumDisparities, mBlockSize);
+               mDfsOcv = cv::StereoSGBM::create(mMinDisparity, mNumDisparities, mBlockSize);
 
                this->SetParameters();