File tree Expand file tree Collapse file tree 8 files changed +10
-60
lines changed
modules/photometric_calib Expand file tree Collapse file tree 8 files changed +10
-60
lines changed Original file line number Diff line number Diff line change 5
5
#ifndef __OPENCV_PHOTOMETRIC_CALIB_HPP__
6
6
#define __OPENCV_PHOTOMETRIC_CALIB_HPP__
7
7
8
- #include " opencv2/core.hpp"
9
- #include " opencv2/imgproc.hpp"
10
-
11
- #include < vector>
12
-
13
- /* * @defgroup photometric_calib Photometric Calibration
14
- */
8
+ #include " opencv2/photometric_calib/Reader.hpp"
9
+ #include " opencv2/photometric_calib/GammaRemover.hpp"
10
+ #include " opencv2/photometric_calib/VignetteRemover.hpp"
11
+ #include " opencv2/photometric_calib/ResponseCalib.hpp"
12
+ #include " opencv2/photometric_calib/VignetteCalib.hpp"
15
13
16
14
namespace cv { namespace photometric_calib {
17
-
18
- // ! @addtogroup photometric_calib
19
- // ! @{
20
-
21
- class CV_EXPORTS PhotometricCalibrator : public Algorithm
22
- {
23
- public:
24
- bool validImgs (const std::vector <Mat> &inputImgs, const std::vector<double > &exposureTime);
25
- };
26
-
27
- // ! @}
28
-
29
15
}} // namespace photometric_calib, cv
30
16
31
17
#endif
Original file line number Diff line number Diff line change 5
5
#ifndef _OPENCV_GAMMAREMOVER_HPP
6
6
#define _OPENCV_GAMMAREMOVER_HPP
7
7
8
- #include " opencv2/photometric_calib .hpp"
8
+ #include " opencv2/core .hpp"
9
9
10
10
namespace cv { namespace photometric_calib {
11
11
Original file line number Diff line number Diff line change 5
5
#ifndef _OPENCV_READER_HPP
6
6
#define _OPENCV_READER_HPP
7
7
8
- #include " opencv2/photometric_calib .hpp"
8
+ #include " opencv2/core .hpp"
9
9
10
10
#include < vector>
11
11
#include < string>
Original file line number Diff line number Diff line change 5
5
#ifndef _OPENCV_RESPONSECALIB_HPP
6
6
#define _OPENCV_RESPONSECALIB_HPP
7
7
8
- #include " opencv2/photometric_calib.hpp"
9
8
#include " opencv2/photometric_calib/Reader.hpp"
10
9
11
10
namespace cv { namespace photometric_calib {
Original file line number Diff line number Diff line change 5
5
#ifndef _OPENCV_VIGNETTECALIB_HPP
6
6
#define _OPENCV_VIGNETTECALIB_HPP
7
7
8
- #include " opencv2/photometric_calib .hpp"
8
+ #include " opencv2/core .hpp"
9
9
#include " opencv2/photometric_calib/Reader.hpp"
10
10
#include " opencv2/photometric_calib/GammaRemover.hpp"
11
11
Original file line number Diff line number Diff line change 5
5
#ifndef _OPENCV_VIGNETTEREMOVER_HPP
6
6
#define _OPENCV_VIGNETTEREMOVER_HPP
7
7
8
- #include " opencv2/photometric_calib .hpp"
8
+ #include " opencv2/core .hpp"
9
9
10
10
namespace cv { namespace photometric_calib {
11
11
Original file line number Diff line number Diff line change 3
3
// of this distribution and at http://opencv.org/license.html.
4
4
5
5
#include " precomp.hpp"
6
- #include " opencv2/photometric_calib.hpp"
7
- #include < iostream>
8
6
9
7
namespace cv { namespace photometric_calib {
10
-
11
- using namespace std ;
12
-
13
- bool PhotometricCalibrator::validImgs (const std::vector <Mat> &inputImgs, const std::vector<double > &exposureTime)
14
- {
15
- if (inputImgs.empty () || exposureTime.empty () || inputImgs.size () != exposureTime.size ())
16
- return false ;
17
-
18
- int width = 0 , height = 0 ;
19
- for (size_t i = 0 ; i < inputImgs.size (); ++ i)
20
- {
21
- Mat img;
22
- img = inputImgs[i];
23
- if (img.type () != CV_8U)
24
- {
25
- cout<<" The type of the image should be CV_8U!" <<endl;
26
- return false ;
27
- }
28
- if ((width!=0 && width != img.cols ) || img.cols ==0 )
29
- {
30
- cout<<" Width mismatch!" <<endl;
31
- return false ;
32
- };
33
- if ((height!=0 && height != img.rows ) || img.rows ==0 )
34
- {
35
- cout<<" Height mismatch!" <<endl;
36
- return false ;
37
- };
38
- width = img.cols ;
39
- height = img.rows ;
40
- }
41
- return true ;
42
- }
43
-
44
8
}} // namespace photometric_calib, cv
Original file line number Diff line number Diff line change 7
7
8
8
#include " opencv2/core.hpp"
9
9
#include " opencv2/highgui.hpp"
10
+ #include " opencv2/imgproc.hpp"
10
11
#include " opencv2/aruco.hpp"
11
12
#include " opencv2/calib3d.hpp"
12
13
#include < vector>
You can’t perform that action at this time.
0 commit comments