SLProject  4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SENSUtils.cpp File Reference
#include "SENSUtils.h"
#include <Utils.h>
Include dependency graph for SENSUtils.cpp:

Go to the source code of this file.

Namespaces

 SENS
 

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::extendWithBars (cv::Mat &img, float targetWdivH)
 
void SENS::mirrorImage (cv::Mat &img, bool mirrorH, bool mirrorV)
 
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)