Fix errata and add LOG to check enter/leave api
authorTae-Young Chung <ty83.chung@samsung.com>
Thu, 7 Oct 2021 09:18:14 +0000 (18:18 +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 9289c799da2eb63eda8f14bd584f46f3adc4a3d4..bea2a84430556fc5dc966bfa211f12708cf5fc7e 100644 (file)
@@ -47,6 +47,8 @@ namespace DfsAdaptationImpl
                                                size_t aggregationWindowHeight,
                                                size_t maxSpeckleSize)
        {
+               LOGI("ENTER");
+
                mTextureThreshold = textureThreshold;
                mAggregationWindowWidth = aggregationWindowWidth;
                mAggregationWindowHeight = aggregationWindowHeight;
@@ -55,18 +57,22 @@ namespace DfsAdaptationImpl
                mDfsOcv = cv::StereoSGBM::create(1, mNumDisparities, mBlockSize);
 
                this->SetParameters();
+               LOGI("LEAVE");
        }
 
        void DfsOCV::SetParameters()
        {
-               mDfsOcv->setMinDisaprity(mMinDisparity);
-               mDfsOcv->setNumDisaprities(mNumDisparities);
+               LOGI("ENTER");
+
+               mDfsOcv->setMinDisparity(mMinDisparity);
+               mDfsOcv->setNumDisparities(mNumDisparities);
                mDfsOcv->setBlockSize(mBlockSize);
                mDfsOcv->setP1(mP1 * mBlockSize * mBlockSize);
                mDfsOcv->setP2(mP2 * mBlockSize * mBlockSize);
                mDfsOcv->setPreFilterCap(mPreFilterCap);
 
                mDfsOcv->setMode(cv::StereoSGBM::MODE_SGBM_3WAY);
+               LOGI("LEAVE");
        }
 
        extern "C"