File tree Expand file tree Collapse file tree 2 files changed +59
-0
lines changed
modules/photometric_calib/include/opencv2/photometric_calib Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Original file line number Diff line number Diff line change 9
9
10
10
namespace cv { namespace photometric_calib {
11
11
12
+ // ! @addtogroup photometric_calib
13
+ // ! @{
14
+
15
+ /* !
16
+ * @brief Class for removing the camera response function (mostly gamma function) when provided with pcalib file.
17
+ *
18
+ */
19
+
12
20
class CV_EXPORTS GammaRemover
13
21
{
14
22
public:
23
+ /* !
24
+ * @brief Constructor
25
+ * @param gammaPath the path of pcalib file of which the format should be .yaml or .yml
26
+ * @param w_ the width of input image
27
+ * @param h_ the height of input image
28
+ */
15
29
GammaRemover (const std::string &gammaPath, int w_, int h_);
16
30
31
+ /* !
32
+ * @brief get irradiance image in the form of cv::Mat. Convenient for display, etc.
33
+ * @param inputIm
34
+ * @return
35
+ */
17
36
Mat getUnGammaImageMat (Mat inputIm);
37
+
38
+ /* !
39
+ * @brief get irradiance image in the form of std::vector<float>. Convenient for optimization or SLAM.
40
+ * @param inputIm
41
+ * @param outImVec
42
+ */
18
43
void getUnGammaImageVec (Mat inputIm, std::vector<float > &outImVec);
19
44
45
+ /* !
46
+ * @brief get gamma function.
47
+ * @return
48
+ */
20
49
inline float * getG ()
21
50
{
22
51
if (!validGamma) return 0 ;
23
52
else return G;
24
53
};
54
+
55
+ /* !
56
+ * @brief get inverse gamma function
57
+ * @return
58
+ */
25
59
inline float * getGInv ()
26
60
{
27
61
if (!validGamma) return 0 ;
Original file line number Diff line number Diff line change 9
9
10
10
namespace cv { namespace photometric_calib {
11
11
12
+ // ! @addtogroup photometric_calib
13
+ // ! @{
14
+
15
+ /* !
16
+ * @brief Class for removing the vignetting artifact when provided with vignetting file.
17
+ *
18
+ */
19
+
12
20
class CV_EXPORTS VignetteRemover
13
21
{
14
22
public:
23
+ /* !
24
+ * @brief Constructor
25
+ * @param vignettePath the path of vignetting file
26
+ * @param w_ the width of input image
27
+ * @param h_ the height of input image
28
+ */
15
29
VignetteRemover (const std::string &vignettePath, int w_, int h_);
16
30
~VignetteRemover ();
17
31
32
+ /* !
33
+ * @brief get vignetting-removed image in form of cv::Mat.
34
+ * @param unGammaImVec the irradiance image.
35
+ * @return
36
+ */
18
37
Mat getUnVignetteImageMat (std::vector<float > &unGammaImVec);
38
+
39
+ /* !
40
+ * @brief get vignetting-removed image in form of std::vector<float>.
41
+ * @param unGammaImVec the irradiance image.
42
+ * @param outImVec the vignetting-removed image vector.
43
+ */
19
44
void getUnVignetteImageVec (const std::vector<float > &unGammaImVec, std::vector<float > &outImVec);
20
45
21
46
private:
You can’t perform that action at this time.
0 commit comments