DeepHealth Dataset.
More...
#include <dataset_parser.h>
◆ Dataset() [1/2]
ecvl::Dataset::Dataset |
( |
| ) |
|
|
inline |
◆ Dataset() [2/2]
ecvl::Dataset::Dataset |
( |
const filesystem::path & |
filename, |
|
|
bool |
verify = false |
|
) |
| |
- Parameters
-
[in] | filename | Path to the Dataset file. |
[in] | verify | Whether to log the non-existence of a dataset sample location or not. |
◆ ~Dataset()
virtual ecvl::Dataset::~Dataset |
( |
| ) |
|
|
inlinevirtual |
◆ Dump()
void ecvl::Dataset::Dump |
( |
const filesystem::path & |
file_path | ) |
|
Dump the Dataset into a YAML file following the DeepHealth Dataset Format.
The YAML file is saved into the dataset root directory. Samples paths are relative to the dataset root directory.
- Parameters
-
[in] | file_path | Where to save the YAML file. |
◆ GetLocations()
std::vector<std::vector<filesystem::path> > ecvl::Dataset::GetLocations |
( |
| ) |
const |
Retrieve the list of all samples locations in the dataset file.
A single Sample can have multiple locations (e.g., if they are different acquisitions of the same image).
- Returns
- vector containing all the samples locations.
◆ GetSplit()
std::vector<int>& ecvl::Dataset::GetSplit |
( |
const ecvl::any & |
split = -1 | ) |
|
Returns the image indexes of the requested split.
If no split is provided or an illegal value is provided, the current split is returned.
- Parameters
-
- Returns
- vector of image indexes of the requested split.
◆ GetSplitIndex()
const int ecvl::Dataset::GetSplitIndex |
( |
ecvl::any |
split | ) |
|
|
protected |
◆ GetSplitIt()
◆ SetSplit()
void ecvl::Dataset::SetSplit |
( |
const ecvl::any & |
split | ) |
|
◆ classes_
std::vector<std::string> ecvl::Dataset::classes_ |
◆ current_split_
int ecvl::Dataset::current_split_ = -1 |
◆ description_
std::string ecvl::Dataset::description_ = "This is the DeepHealth example dataset!" |
◆ features_
std::vector<std::string> ecvl::Dataset::features_ |
◆ name_
std::string ecvl::Dataset::name_ = "DeepHealth dataset" |
◆ samples_
std::vector<Sample> ecvl::Dataset::samples_ |
◆ split_
std::vector<Split> ecvl::Dataset::split_ |
◆ task_
Task ecvl::Dataset::task_ |
◆ url_regex_
const std::regex ecvl::Dataset::url_regex_ |
|
static |
The documentation for this class was generated from the following file: