4 #include <opencv2/opencv.hpp>
6 #define SENS_PI 3.1415926535897932384626433832795
7 #define SENS_DEG2RAD SENS_PI / 180.0
8 #define SENS_RAD2DEG 180.0 / SENS_PI
13 bool calcCrop(cv::Size inputSize,
float targetWdivH,
int& cropW,
int& cropH,
int& width,
int& height);
14 void cropImage(cv::Mat& img,
float targetWdivH,
int& cropW,
int& cropH);
15 void cropImageTo(
const cv::Mat& img, cv::Mat& outImg,
float targetWdivH,
int& cropW,
int& cropH);
17 void mirrorImage(cv::Mat& img,
bool mirrorH,
bool mirrorV);
40 cv::Mat
adaptCameraMat(cv::Mat origMat,
int newRefLength,
int oldRefLength);
void extendWithBars(cv::Mat &img, float targetWdivH)
void mirrorImage(cv::Mat &img, bool mirrorH, bool mirrorV)
float calcFocalLengthPixFromFOVDeg(const float fovDeg, const int imgLength)
float calcFOVDegFromFocalLengthPix(const float focalLengthPix, const int imgLength)
void cropImageTo(const cv::Mat &img, cv::Mat &outImg, float targetWdivH, int &cropW, int &cropH)
void cropImage(cv::Mat &img, float targetWdivH, int &cropW, int &cropH)
bool calcCrop(cv::Size inputSize, float targetWdivH, int &cropW, int &cropH, int &width, int &height)
cv::Mat adaptCameraMat(cv::Mat origMat, int newRefLength, int oldRefLength)
float calcFovDegFromOtherFovDeg(const float otherFovDeg, const int otherLength, const int length)