ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
SampleRedwoodRGBDImages.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  "20220301-data/SampleRedwoodRGBDImages.zip",
21  "43971c5f690c9cfc52dda8c96a0140ee"};
22 
24  : DownloadDataset("SampleRedwoodRGBDImages", data_descriptor, data_root) {
25  const std::string extract_dir = GetExtractDir();
26 
27  color_paths_ = {
28  extract_dir + "/color/00000.jpg", extract_dir + "/color/00001.jpg",
29  extract_dir + "/color/00002.jpg", extract_dir + "/color/00003.jpg",
30  extract_dir + "/color/00004.jpg"};
31 
32  depth_paths_ = {
33  extract_dir + "/depth/00000.png", extract_dir + "/depth/00001.png",
34  extract_dir + "/depth/00002.png", extract_dir + "/depth/00003.png",
35  extract_dir + "/depth/00004.png"};
36 
37  trajectory_log_path_ = extract_dir + "/trajectory.log";
38  odometry_log_path_ = extract_dir + "/odometry.log";
39  rgbd_match_path_ = extract_dir + "/rgbd.match";
40  reconstruction_path_ = extract_dir + "/example_tsdf_pcd.ply";
41  camera_intrinsic_path_ = extract_dir + "/camera_primesense.json";
42 }
43 
44 } // namespace data
45 } // 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
SampleRedwoodRGBDImages(const std::string &data_root="")
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