SLProject  4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SENSUtils.h File Reference
#include <opencv2/opencv.hpp>
Include dependency graph for SENSUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 SENS
 

Macros

#define SENS_PI   3.1415926535897932384626433832795
 
#define SENS_DEG2RAD   SENS_PI / 180.0
 
#define SENS_RAD2DEG   180.0 / SENS_PI
 

Functions

bool SENS::calcCrop (cv::Size inputSize, float targetWdivH, int &cropW, int &cropH, int &width, int &height)
 
void SENS::cropImage (cv::Mat &img, float targetWdivH, int &cropW, int &cropH)
 
void SENS::cropImageTo (const cv::Mat &img, cv::Mat &outImg, float targetWdivH, int &cropW, int &cropH)
 
void SENS::mirrorImage (cv::Mat &img, bool mirrorH, bool mirrorV)
 
void SENS::extendWithBars (cv::Mat &img, float targetWdivH)
 
float SENS::calcFOVDegFromFocalLengthPix (const float focalLengthPix, const int imgLength)
 
float SENS::calcFocalLengthPixFromFOVDeg (const float fovDeg, const int imgLength)
 
float SENS::calcFovDegFromOtherFovDeg (const float otherFovDeg, const int otherLength, const int length)
 
cv::Mat SENS::adaptCameraMat (cv::Mat origMat, int newRefLength, int oldRefLength)
 

Macro Definition Documentation

◆ SENS_DEG2RAD

#define SENS_DEG2RAD   SENS_PI / 180.0

Definition at line 7 of file SENSUtils.h.

◆ SENS_PI

#define SENS_PI   3.1415926535897932384626433832795

Definition at line 6 of file SENSUtils.h.

◆ SENS_RAD2DEG

#define SENS_RAD2DEG   180.0 / SENS_PI

Definition at line 8 of file SENSUtils.h.