9 |
jakw |
1 |
#ifndef CVTOOLS_H
|
|
|
2 |
#define CVTOOLS_H
|
|
|
3 |
|
|
|
4 |
#include <opencv2/opencv.hpp>
|
|
|
5 |
|
|
|
6 |
namespace cvtools{
|
50 |
jakw |
7 |
void drawChessboardCorners(cv::InputOutputArray _image, cv::Size patternSize, cv::InputArray _corners, bool patternWasFound, int line_width=1);
|
48 |
jakw |
8 |
void cvDrawChessboardCorners(CvArr* _image, CvSize pattern_size, CvPoint2D32f* corners, int count, int found, int line_width=1);
|
74 |
jakw |
9 |
cv::Mat modulo(const cv::Mat &mat, float n);
|
42 |
jakw |
10 |
void matToPoints3f(const cv::Mat &mat, std::vector<cv::Point3f> &points);
|
|
|
11 |
void convertMatFromHomogeneous(cv::Mat &src, cv::Mat &dst);
|
35 |
jakw |
12 |
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);
|
31 |
jakw |
13 |
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);
|
9 |
jakw |
14 |
void initDistortMap(const cv::Matx33f cameraMatrix, const cv::Vec<float, 5> distCoeffs, const cv::Size size, cv::Mat &map1, cv::Mat &map2);
|
|
|
15 |
cv::Mat diamondDownsample(cv::Mat &pattern);
|
|
|
16 |
void imshow(const char *windowName, cv::Mat im, unsigned int x, unsigned int y);
|
|
|
17 |
void imagesc(const char* windowName, cv::Mat im);
|
|
|
18 |
cv::Mat histimage(cv::Mat histogram);
|
|
|
19 |
void hist(const char *windowName, cv::Mat im, unsigned int x, unsigned int y);
|
|
|
20 |
void writeMat( cv::Mat const& mat, const char* filename, const char* varName = "A", bool bgr2rgb = true);
|
|
|
21 |
}
|
|
|
22 |
|
|
|
23 |
#endif // CVTOOLS_H
|