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 7a7aa683a86a64a5d57209a6502de3fa78417e26..cc4594ef403305a10eb2c666f5ec7de0b21a6302 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 d73e2cfd0c6688747fcdb8d913b1ebe91f9b3964..b6b2faf01e6135344f6a904b8004e77cdf679642 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");
        }