Add stereoConfigPath to get stereoConfig information for point cloud generation
authorTae-Young Chung <ty83.chung@samsung.com>
Fri, 21 Jan 2022 07:53:22 +0000 (16:53 +0900)
committer엘무럿/선행S/W Lab(생활가전)/Principal Engineer/삼성전자 <e.talipov@samsung.com>
Thu, 27 Jan 2022 04:33:55 +0000 (13:33 +0900)
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
include/dfs_adaptation.h
include/dfs_adaptation_impl.h
include/dfs_parameter.h
packaging/dfs-adaptation.spec
src/dfs_adaptation_impl.cpp

index 64c67a3..c637c94 100644 (file)
@@ -38,7 +38,8 @@ namespace DfsAdaptation
                                                                size_t width,
                                                                size_t height,
                                                                size_t minDisp,
-                                                               size_t maxDisp) = 0;
+                                                               size_t maxDisp,
+                                                               std::string stereoConfigPath) = 0;
 
                /**
                 * @brief Run dfs adaptor.
index 89dbd3e..020634b 100644 (file)
@@ -36,7 +36,7 @@ namespace DfsAdaptation
                void Unbind();
 
                void Initialize(DfsParameter& param, size_t width, size_t height,
-                                               size_t minDisp, size_t maxDisp);
+                                               size_t minDisp, size_t maxDisp, std::string stereoConfigPath);
                void Run(DfsData& base, DfsData& extra);
                DfsData& GetDepthData();
        };
index 61cb198..14991a4 100644 (file)
@@ -18,6 +18,7 @@
 #define __DFS_PARAMETER_H__
 
 #include <cstddef>
+#include <vector>
 /**
  * @file dfs_parameter.h
  * @brief This file contains the depth parameter structure.
@@ -47,6 +48,10 @@ namespace DfsAdaptation
         size_t height;
         size_t stride;
 
+        std::vector<std::vector<double>> pointCloud;
+        double *pointCloudData;
+        size_t pointCloudSize;
+
         DfsData()
         {
             data = nullptr;
index bc66eec..d46dd0b 100644 (file)
@@ -1,6 +1,6 @@
 Name:        dfs-adaptation
 Summary:     Adaptation of depth-from-stereo
-Version:     1.0.1
+Version:     1.0.2
 Release:     0
 Group:       Multimedia/Framework
 License:     Apache-2.0
index c16b637..6dc82d1 100644 (file)
@@ -117,13 +117,13 @@ namespace DfsAdaptation
        }
 
        void DfsAdaptor::Initialize(DfsParameter& param, size_t width, size_t height,
-                                                               size_t minDisp, size_t maxDisp)
+                                                               size_t minDisp, size_t maxDisp, std::string stereoConfigPath)
        {
                LOGI("ENTER");
 
                CHECK_INSTANCE(mDfsAdaptorHandle);
 
-               mDfsAdaptorHandle->Initialize(param, width, height, minDisp, maxDisp);
+               mDfsAdaptorHandle->Initialize(param, width, height, minDisp, maxDisp, stereoConfigPath);
 
                LOGI("LEAVE");
        }