Set pointCloudData and pointCloudSize to nullptr and zero
authorTae-Young Chung <ty83.chung@samsung.com>
Fri, 6 May 2022 07:43:01 +0000 (16:43 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Fri, 6 May 2022 07:43:05 +0000 (16:43 +0900)
[Version] 1.0.4-0
[Issue type] bug fix

Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
packaging/dfs-opencv.spec
src/dfs_opencv.cpp

index 7a7aa68..cc4594e 100644 (file)
@@ -1,6 +1,6 @@
 Name:       dfs-opencv
 Summary:    OpenCV based Depth-from-Stereo implementation
-Version:    1.0.3
+Version:    1.0.4
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index d73e2cf..b6b2faf 100644 (file)
@@ -455,6 +455,9 @@ namespace DfsAdaptationImpl
                mDepthData.height = mDispMat.rows;
                mDepthData.stride = mDispMat.elemSize() *  mDispMat.cols;
 
+               mDepthData.pointCloudData = nullptr;
+               mDepthData.pointCloudSize = 0;
+
                LOGI("LEAVE");
        }