MachineIntelligenceCore:Algorithms
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
STL10MatrixImporter.hpp
Go to the documentation of this file.
1 
24 #ifndef SRC_importers_STL10MatrixImporter_HPP_
25 #define SRC_importers_STL10MatrixImporter_HPP_
26 
27 #include <types/MatrixTypes.hpp>
28 #include <importers/Importer.hpp>
29 
30 namespace mic {
31 namespace importers {
32 
33 class STL10MatrixImporter: public mic::importers::Importer< mic::types::MatrixXf, unsigned int > {
34 public:
41  STL10MatrixImporter(std::string node_name_ = "stl10_matrix_importer", std::string data_filename_ = "", std::string labels_filename_ = "");
42 
46  virtual ~STL10MatrixImporter() { };
47 
52  void setDataFilename(std::string data_filename_);
53 
58  void setLabelsFilename(std::string labels_filename_);
59 
64  bool importData();
65 
70 
71 private:
75  size_t image_width;
76 
80  size_t image_height;
81 
85  mic::configuration::Property<std::string> data_filename;
86 
90  mic::configuration::Property<std::string> labels_filename;
91 
95  mic::configuration::Property<int> samples_limit;
96 
97  bool labeled = false;
98 };
99 
100 
101 } /* namespace importers */
102 } /* namespace mic */
103 
104 
105 #endif /* SRC_importers_STL10MatrixImporter_HPP_ */
Contains definition of basic matrix datatypes derived from Eigen.
mic::configuration::Property< std::string > data_filename
void setDataFilename(std::string data_filename_)
Parent class for all data importers.
Definition: Importer.hpp:51
void setLabelsFilename(std::string labels_filename_)
Contains declaration (and definition) of base template class of all data importers.
STL10MatrixImporter(std::string node_name_="stl10_matrix_importer", std::string data_filename_="", std::string labels_filename_="")
mic::configuration::Property< int > samples_limit
mic::configuration::Property< std::string > labels_filename