1 |
#ifndef CVTOOLS_H
|
1 |
#ifndef CVTOOLS_H
|
2 |
#define CVTOOLS_H
|
2 |
#define CVTOOLS_H
|
3 |
|
3 |
|
4 |
#include <opencv2/opencv.hpp>
|
4 |
#include <opencv2/opencv.hpp>
|
5 |
|
5 |
|
6 |
namespace cvtools{
|
6 |
namespace cvtools{
|
- |
|
7 |
void handEyeCalibrationTsai(const std::vector<cv::Matx33f> R, const std::vector<cv::Vec3f> t, const std::vector<cv::Matx33f> R_mark, const std::vector<cv::Vec3f> t_mark, cv::Matx33f &Omega, cv::Vec3f &tau);
|
7 |
void fitSixDofData(const std::vector<cv::Matx33f> R, const std::vector<cv::Vec3f> t, const std::vector<cv::Matx33f> R_mark, const std::vector<cv::Vec3f> t_mark, cv::Matx33f &Omega, cv::Vec3f &tau);
|
8 |
void fitSixDofData(const std::vector<cv::Matx33f> R, const std::vector<cv::Vec3f> t, const std::vector<cv::Matx33f> R_mark, const std::vector<cv::Vec3f> t_mark, cv::Matx33f &Omega, cv::Vec3f &tau);
|
8 |
void initDistortMap(const cv::Matx33f cameraMatrix, const cv::Vec<float, 5> distCoeffs, const cv::Size size, cv::Mat &map1, cv::Mat &map2);
|
9 |
void initDistortMap(const cv::Matx33f cameraMatrix, const cv::Vec<float, 5> distCoeffs, const cv::Size size, cv::Mat &map1, cv::Mat &map2);
|
9 |
cv::Mat diamondDownsample(cv::Mat &pattern);
|
10 |
cv::Mat diamondDownsample(cv::Mat &pattern);
|
10 |
void imshow(const char *windowName, cv::Mat im, unsigned int x, unsigned int y);
|
11 |
void imshow(const char *windowName, cv::Mat im, unsigned int x, unsigned int y);
|
11 |
void imagesc(const char* windowName, cv::Mat im);
|
12 |
void imagesc(const char* windowName, cv::Mat im);
|
12 |
cv::Mat histimage(cv::Mat histogram);
|
13 |
cv::Mat histimage(cv::Mat histogram);
|
13 |
void hist(const char *windowName, cv::Mat im, unsigned int x, unsigned int y);
|
14 |
void hist(const char *windowName, cv::Mat im, unsigned int x, unsigned int y);
|
14 |
void writeMat( cv::Mat const& mat, const char* filename, const char* varName = "A", bool bgr2rgb = true);
|
15 |
void writeMat( cv::Mat const& mat, const char* filename, const char* varName = "A", bool bgr2rgb = true);
|
15 |
}
|
16 |
}
|
16 |
|
17 |
|
17 |
#endif // CVTOOLS_H
|
18 |
#endif // CVTOOLS_H
|
18 |
|
19 |
|