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 64c67a39b6ba672bcb1e89f936fb4c8ca00e6c1b..c637c94e2e7b07e382120ae3cb49a0fe242c200e 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 89dbd3e42701367ca754de63a4376e48c339c99a..020634bf9d5f118227c8c57890fd427b7c0c31d4 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 61cb1980d94922358b8544f10562f61763f38e9c..14991a4503d53ad89f4af4eee2d7a351fc7bd377 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 bc66eec4791b20b25feb664eabd64fd3fea1e709..d46dd0bcd68ee151bb12a9bd2e2b712c2041d218 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 c16b6375d35faa6759507853505188f9dcfab005..6dc82d1a542bcc38717dd004cde142b86f876109 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");
        }