ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
DemoFeatureMatchingPointClouds.cpp
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #include <Logging.h>
9 
10 #include <string>
11 #include <vector>
12 
14 
15 namespace cloudViewer {
16 namespace data {
17 
20  "20220201-data/DemoFeatureMatchingPointClouds.zip",
21  "02f0703ce0cbf4df78ce2602ae33fc79"};
22 
24  const std::string& data_root)
26  "DemoFeatureMatchingPointClouds", data_descriptor, data_root) {
27  const std::string extract_dir = GetExtractDir();
28  point_cloud_paths_ = {extract_dir + "/cloud_bin_0.pcd",
29  extract_dir + "/cloud_bin_1.pcd"};
30  fpfh_feature_paths_ = {extract_dir + "/cloud_bin_0.fpfh.bin",
31  extract_dir + "/cloud_bin_1.fpfh.bin"};
32  l32d_feature_paths_ = {extract_dir + "/cloud_bin_0.d32.bin",
33  extract_dir + "/cloud_bin_1.d32.bin"};
34 }
35 
36 } // namespace data
37 } // namespace cloudViewer
const std::string GetExtractDir() const
Get absolute path to extract directory. i.e. ${data_root}/extract/${prefix}.
Definition: Dataset.h:94
Dataset class with one or more downloaded file.
Definition: Dataset.h:152
std::string CloudViewerDownloadsPrefix()
Definition: Dataset.cpp:49
static const DataDescriptor data_descriptor
Generic file read and write utility for python interface.
Infomation about a file to be downloaded.
Definition: Dataset.h:111