#include <IO.h>
List of all members.
Static Public Member Functions |
template<class T > |
static void | load (const std::string &filename, T &c, const std::string &nodename="data") |
static void | load (const std::string &filename, cv::FernClassifier &c, const std::string &nodename="fern_classifier") |
static void | loadKeyPoints (const std::string &filename, std::vector< cv::KeyPoint > &keys, const std::string &nodename="keys") |
static void | print (const cv::Mat &m, const std::string &name="", std::ostream &f=std::cout) |
template<class T > |
static void | print (const cv::Mat &m, const std::string &name="", std::ostream &f=std::cout) |
template<class T > |
static void | save (const std::string &filename, const T &c, const std::string &nodename="data") |
static void | save (const std::string &filename, const cv::FernClassifier &c, const std::string &nodename="fern_classifier") |
| Save and Load functions to make calling easier.
|
static void | saveKeyPoints (const std::string &filename, const std::vector< cv::KeyPoint > &keys, const std::string &nodename="keys") |
Detailed Description
Definition at line 22 of file include/re_vision/IO.h.
Member Function Documentation
template<class T >
void DUtilsCV::IO::load |
( |
const std::string & |
filename, |
|
|
T & |
c, |
|
|
const std::string & |
nodename = "data" |
|
) |
| [static] |
Loads any type of data that supports the "read" function
- Parameters:
-
filename | |
c | the data structure to load |
nodename | |
Definition at line 128 of file include/re_vision/IO.h.
void DUtilsCV::IO::load |
( |
const std::string & |
filename, |
|
|
cv::FernClassifier & |
c, |
|
|
const std::string & |
nodename = "fern_classifier" |
|
) |
| [inline, static] |
Loads a set of keypoints
- Parameters:
-
Definition at line 46 of file IO.cpp.
void IO::print |
( |
const cv::Mat & |
m, |
|
|
const std::string & |
name = "" , |
|
|
std::ostream & |
f = std::cout |
|
) |
| [static] |
Prints a mat of scalar values
- Parameters:
-
m | |
name | optional name given when printing |
f | stream where m is printed out |
Definition at line 100 of file include/re_vision/IO.h.
template<class T >
static void DUtilsCV::IO::print |
( |
const cv::Mat & |
m, |
|
|
const std::string & |
name = "" , |
|
|
std::ostream & |
f = std::cout |
|
) |
| [static] |
Prints any mat of the type given
- Parameters:
-
m | |
name | optional name given when printing |
f | stream where m is printed out |
template<class T >
void DUtilsCV::IO::save |
( |
const std::string & |
filename, |
|
|
const T & |
c, |
|
|
const std::string & |
nodename = "data" |
|
) |
| [static] |
Saves any type of data that supports the "write" function
- Parameters:
-
filename | |
c | the data structure to save |
nodename | |
Definition at line 118 of file include/re_vision/IO.h.
void DUtilsCV::IO::save |
( |
const std::string & |
filename, |
|
|
const cv::FernClassifier & |
c, |
|
|
const std::string & |
nodename = "fern_classifier" |
|
) |
| [inline, static] |
void IO::saveKeyPoints |
( |
const std::string & |
filename, |
|
|
const std::vector< cv::KeyPoint > & |
keys, |
|
|
const std::string & |
nodename = "keys" |
|
) |
| [static] |
Saves a set of keypoints in the opencv-format
- Parameters:
-
filename | |
keys | |
nodename | name of the node of the set of keypoints to store then in xml/yaml format |
Definition at line 36 of file IO.cpp.
The documentation for this class was generated from the following files: