Skip to content

Commit a981654

Browse files
committed
finish interfaces of VignetteCalib class
1 parent 2556e8c commit a981654

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

modules/photometric_calib/include/opencv2/photometric_calib/VignetteCalib.hpp

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,26 @@
77

88
#include "opencv2/photometric_calib.hpp"
99
#include "opencv2/photometric_calib/Reader.hpp"
10+
#include "opencv2/photometric_calib/GammaRemover.hpp"
1011

1112
namespace cv { namespace photometric_calib {
1213

1314

1415
class CV_EXPORTS VignetteCalib
1516
{
1617
public:
17-
VignetteCalib(std::string folderPath, std::string timePath);
18-
VignetteCalib(std::string folderPath, std::string timePath, int imageSkip, int maxIterations, int outlierTh,
18+
VignetteCalib(std::string folderPath, std::string timePath, std::string cameraFile, std::string gammaFile);
19+
VignetteCalib(std::string folderPath, std::string timePath, std::string cameraFile, std::string gammaFile, int imageSkip, int maxIterations, int outlierTh,
1920
int gridWidth, int gridHeight, float facW, float facH, int maxAbsGrad);
2021

22+
virtual ~VignetteCalib();
23+
24+
//EIGEN_ALWAYS_INLINE float getInterpolatedElement(const float* const mat, const float x, const float y, const int width)
25+
float getInterpolatedElement(const float* const mat, const float x, const float y, const int width);
26+
void displayImage(float* I, int w, int h, std::string name);
27+
void displayImageV(float* I, int w, int h, std::string name);
28+
void calib();
29+
2130
private:
2231
int _imageSkip;
2332
int _maxIterations;
@@ -34,7 +43,11 @@ class CV_EXPORTS VignetteCalib
3443
// remove pixel with absolute gradient larger than this from the optimization.
3544
int _maxAbsGrad;
3645

46+
Matx33f _cameraMatrix;
47+
Mat _distCoeffs;
48+
3749
Reader *imageReader;
50+
GammaRemover *gammaRemover;
3851
};
3952

4053
}}

0 commit comments

Comments
 (0)