Static Public Member Functions
DUtilsCV::IO Class Reference

#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
cthe 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]

Definition at line 146 of file include/re_vision/IO.h.

void IO::loadKeyPoints ( const std::string &  filename,
std::vector< cv::KeyPoint > &  keys,
const std::string &  nodename = "keys" 
) [static]

Loads a set of keypoints

Parameters:
filename
keys
nodename

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
nameoptional name given when printing
fstream 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
nameoptional name given when printing
fstream 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
cthe 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]

Save and Load functions to make calling easier.

Definition at line 137 of file include/re_vision/IO.h.

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
nodenamename 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:


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:34:29