DUtilsCV::IO Class Reference
Input/Output functions for storage and printing.
More...
#include <IO.h>
List of all members.
Static Public Member Functions |
static void | saveKeyPoints (const std::string &filename, const std::vector< cv::KeyPoint > &keys, const std::string &nodename="keys") |
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) |
static void | printSize (const cv::Mat &m, const std::string &name="", std::ostream &f=std::cout) |
static void | printType (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") |
template<class T > |
static void | load (const std::string &filename, T &c, const std::string &nodename="data") |
static void | save (const std::string &filename, const cv::FernClassifier &c, const std::string &nodename="fern_classifier") |
static void | load (const std::string &filename, cv::FernClassifier &c, const std::string &nodename="fern_classifier") |
Detailed Description
Input/Output functions for storage and printing.
Member Function Documentation
void DUtilsCV::IO::load |
( |
const std::string & |
filename, |
|
|
cv::FernClassifier & |
c, |
|
|
const std::string & |
nodename = "fern_classifier" | |
|
) |
| | [inline, static] |
Loads a fern classifier
- Parameters:
-
template<class T >
void DUtilsCV::IO::load |
( |
const std::string & |
filename, |
|
|
T & |
c, |
|
|
const std::string & |
nodename = "data" | |
|
) |
| | [inline, static] |
Loads any type of data that supports the "read" function
- Parameters:
-
| filename | |
| c | the data structure to load |
| nodename | |
void IO::loadKeyPoints |
( |
const std::string & |
filename, |
|
|
std::vector< cv::KeyPoint > & |
keys, |
|
|
const std::string & |
nodename = "keys" | |
|
) |
| | [static] |
Loads a set of keypoints
- Parameters:
-
template<class T >
static void DUtilsCV::IO::print |
( |
const cv::Mat & |
m, |
|
|
const std::string & |
name = "" , |
|
|
std::ostream & |
f = std::cout | |
|
) |
| | [inline, static] |
Prints any mat of the type given
- Parameters:
-
| m | |
| name | optional name given when printing |
| f | stream where m is printed out |
void DUtilsCV::IO::print |
( |
const cv::Mat & |
m, |
|
|
const std::string & |
name = "" , |
|
|
std::ostream & |
f = std::cout | |
|
) |
| | [inline, static] |
Prints a mat of scalar values
- Parameters:
-
| m | |
| name | optional name given when printing |
| f | stream where m is printed out |
void IO::printSize |
( |
const cv::Mat & |
m, |
|
|
const std::string & |
name = "" , |
|
|
std::ostream & |
f = std::cout | |
|
) |
| | [static] |
Prints the size of the given matrix
- Parameters:
-
| m | |
| name | optional name given when printing |
| f | stream |
void IO::printType |
( |
const cv::Mat & |
m, |
|
|
const std::string & |
name = "" , |
|
|
std::ostream & |
f = std::cout | |
|
) |
| | [static] |
Prints the data type of the given matrix
- Parameters:
-
| m | |
| name | optional name given when printing |
| f | stream |
void DUtilsCV::IO::save |
( |
const std::string & |
filename, |
|
|
const cv::FernClassifier & |
c, |
|
|
const std::string & |
nodename = "fern_classifier" | |
|
) |
| | [inline, static] |
Saves a fern classifier
- Parameters:
-
template<class T >
void DUtilsCV::IO::save |
( |
const std::string & |
filename, |
|
|
const T & |
c, |
|
|
const std::string & |
nodename = "data" | |
|
) |
| | [inline, static] |
Saves any type of data that supports the "write" function
- Parameters:
-
| filename | |
| c | the data structure to save |
| nodename | |
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 |
The documentation for this class was generated from the following files: