-
Notifications
You must be signed in to change notification settings - Fork 4
/
cvtools.h
18 lines (15 loc) · 847 Bytes
/
cvtools.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef CVTOOLS_H
#define CVTOOLS_H
#include <opencv2/opencv.hpp>
namespace cvtools{
void phaseCorrelate(const cv::Mat &im1, const cv::Mat &im2, float &scale, float &angle, cv::Point2f &shift);
cv::Mat logPolar(const cv::Mat &image, float scale);
void initDistortMap(const cv::Matx33f cameraMatrix, const cv::Vec<float, 5> distCoeffs, const cv::Size size, cv::Mat &map1, cv::Mat &map2);
cv::Mat diamondDownsample(cv::Mat &pattern);
void imshow(const char *windowName, cv::Mat im, unsigned int x, unsigned int y);
void imagesc(const char* windowName, cv::Mat im);
cv::Mat histimage(cv::Mat histogram);
void hist(const char *windowName, cv::Mat im, unsigned int x, unsigned int y);
void writeMat( cv::Mat const& mat, const char* filename, const char* varName = "A", bool bgr2rgb = true);
}
#endif // CVTOOLS_H