Open3D (C++ API)
0.18.0+252c867
|
Base Open3D dataset class. More...
#include <Dataset.h>
Public Member Functions | |
Dataset (const std::string &prefix, const std::string &data_root="") | |
Parameterized Constructor. More... | |
virtual | ~Dataset () |
const std::string | GetDataRoot () const |
Get data root directory. The data root is set at construction time or automatically determined. More... | |
const std::string | GetPrefix () const |
Get prefix for the dataset. More... | |
const std::string | GetDownloadDir () const |
Get absolute path to download directory. i.e. ${data_root}/download/${prefix}. More... | |
const std::string | GetExtractDir () const |
Get absolute path to extract directory. i.e. ${data_root}/extract/${prefix}. More... | |
Protected Member Functions | |
void | CheckPathsExist (const std::vector< std::string > &paths) const |
Check if the paths exists after extraction. More... | |
Protected Attributes | |
std::string | data_root_ |
Open3D data root. More... | |
std::string | prefix_ |
Dataset prefix. More... | |
Base Open3D dataset class.
The Dataset classes in Open3D are designed for convenient access to "built-in" example and test data. You'll need internet access to use the dataset classes. The downloaded data will be stored in the Open3D's data root directory.
data_root
when instantiating a dataset object. (b) OPEN3D_DATA_ROOT environment variable. (c) $HOME/open3d_data. By default, (c) will be used, and it is also the recommended way.${data_root}/download/prefix/
and extracted or copied to ${data_root}/extract/prefix/
. If the extracted data directory exists, the files will be used without validation. If it does not exists, and the valid downloaded file exists, the data will be extracted from the downloaded file. If downloaded file does not exists, or validates against the provided MD5, it will be re-downloaded.open3d::data::Dataset::Dataset | ( | const std::string & | prefix, |
const std::string & | data_root = "" |
||
) |
Parameterized Constructor.
prefix | Prefix of the dataset. The data is downloaded in ${data_root}/download/${prefix}/ and extracted in ${data_root}/extract/${prefix}/ . |
data_root | Path to ${data_root} , which contains all the downloaded and extracted files. The data root directory is located in the following order: (a) User-specified by data_root when instantiating a dataset object. (b) OPEN3D_DATA_ROOT environment variable. (c) $HOME/open3d_data. By default, (c) will be used, and it is also the recommended way. |
|
inlinevirtual |
|
protected |
Check if the paths exists after extraction.
|
inline |
Get data root directory. The data root is set at construction time or automatically determined.
|
inline |
Get absolute path to download directory. i.e. ${data_root}/download/${prefix}.
|
inline |
Get absolute path to extract directory. i.e. ${data_root}/extract/${prefix}.
|
inline |
Get prefix for the dataset.
|
protected |
Open3D data root.
|
protected |
Dataset prefix.