camshiftKalman
 All Classes Files Functions Variables Enumerations Enumerator Macros
Functions
util.h File Reference
#include <opencv2/core/core.hpp>
#include <string>
#include <fstream>

Go to the source code of this file.

Functions

void readConfig (char *configFileName, char *videoPath, cv::Rect &box)
 readConfig read config text More...
 
void writeXML (std::string configFileName, const std::string videoPath, const cv::Rect box)
 writeXML write XML and YMAL config file More...
 
void readXML (std::string configFileName, std::string &videoPath, cv::Rect &box)
 readXML read XML and YMAL config file More...
 
template<class T >
int unique (T *src, int len)
 

Function Documentation

void readConfig ( char *  configFileName,
char *  videoPath,
cv::Rect &  box 
)

readConfig read config text

Parameters
configFileNameconfig file name
videoPaththe returned video name
boxreturned value of initialize tracking window
void readXML ( std::string  configFileName,
std::string &  videoPath,
cv::Rect &  box 
)

readXML read XML and YMAL config file

Parameters
configFileName
videoPath
box
template<class T >
int unique ( T *  src,
int  len 
)

compute the unique elements in src the length of src

Returns
the total number of elements in dest src[0] ... src[n-1]
void writeXML ( std::string  configFileName,
const std::string  videoPath,
const cv::Rect  box 
)

writeXML write XML and YMAL config file

Parameters
configFileName
videoPath
box