![]()  | 
  
    | 
 
Sample image in a dataset. More...
#include <dataset_parser.h>
Public Member Functions | |
| ecvl::Image | LoadImage (ecvl::ColorType ctype=ecvl::ColorType::RGB, const bool &is_gt=false) | 
| Return an Image of the dataset.  More... | |
Public Attributes | |
| std::vector< filesystem::path > | location_ | 
| Absolute path of the sample.  More... | |
| optional< std::vector< int > > | label_ | 
| Vector of sample labels.  More... | |
| optional< filesystem::path > | label_path_ | 
| Absolute path of sample ground truth.  More... | |
| optional< std::map< int, std::string > > | values_ | 
Map (map<feature-index,feature-value>) which stores the features of a sample.  More... | |
| std::vector< int > | size_ | 
| Original x and y dimensions of the sample.  More... | |
Sample image in a dataset.
This class provides the information to describe a dataset sample. label_ and label_path_ are mutually exclusive. 
Definition at line 58 of file dataset_parser.h.
| ecvl::Image ecvl::Sample::LoadImage | ( | ecvl::ColorType | ctype = ecvl::ColorType::RGB,  | 
        
| const bool & | is_gt = false  | 
        ||
| ) | 
Return an Image of the dataset.
The LoadImage() function opens the sample image, from location_ or label_path_ depending on is_gt parameter.
| [in] | ctype | ecvl::ColorType of the returned Image. | 
| [in] | is_gt | Whether to load the sample image or its ground truth. | 
| optional<std::vector<int> > ecvl::Sample::label_ | 
Vector of sample labels.
Definition at line 62 of file dataset_parser.h.
| optional<filesystem::path> ecvl::Sample::label_path_ | 
Absolute path of sample ground truth.
Definition at line 63 of file dataset_parser.h.
| std::vector<filesystem::path> ecvl::Sample::location_ | 
Absolute path of the sample.
Definition at line 61 of file dataset_parser.h.
| std::vector<int> ecvl::Sample::size_ | 
Original x and y dimensions of the sample.
Definition at line 65 of file dataset_parser.h.
| optional<std::map<int, std::string> > ecvl::Sample::values_ | 
Map (map<feature-index,feature-value>) which stores the features of a sample. 
Definition at line 64 of file dataset_parser.h.
 1.8.15