Skip to content

Commit f248779

Browse files
committed
Add doxygen to GammaRemover and VignetteRemover.
1 parent 1cda043 commit f248779

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

modules/photometric_calib/include/opencv2/photometric_calib/GammaRemover.hpp

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,53 @@
99

1010
namespace cv { namespace photometric_calib {
1111

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+
1220
class CV_EXPORTS GammaRemover
1321
{
1422
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+
*/
1529
GammaRemover(const std::string &gammaPath, int w_, int h_);
1630

31+
/*!
32+
* @brief get irradiance image in the form of cv::Mat. Convenient for display, etc.
33+
* @param inputIm
34+
* @return
35+
*/
1736
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+
*/
1843
void getUnGammaImageVec(Mat inputIm, std::vector<float> &outImVec);
1944

45+
/*!
46+
* @brief get gamma function.
47+
* @return
48+
*/
2049
inline float* getG()
2150
{
2251
if(!validGamma) return 0;
2352
else return G;
2453
};
54+
55+
/*!
56+
* @brief get inverse gamma function
57+
* @return
58+
*/
2559
inline float* getGInv()
2660
{
2761
if(!validGamma) return 0;

modules/photometric_calib/include/opencv2/photometric_calib/VignetteRemover.hpp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,38 @@
99

1010
namespace cv { namespace photometric_calib {
1111

12+
//! @addtogroup photometric_calib
13+
//! @{
14+
15+
/*!
16+
* @brief Class for removing the vignetting artifact when provided with vignetting file.
17+
*
18+
*/
19+
1220
class CV_EXPORTS VignetteRemover
1321
{
1422
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+
*/
1529
VignetteRemover(const std::string &vignettePath, int w_, int h_);
1630
~VignetteRemover();
1731

32+
/*!
33+
* @brief get vignetting-removed image in form of cv::Mat.
34+
* @param unGammaImVec the irradiance image.
35+
* @return
36+
*/
1837
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+
*/
1944
void getUnVignetteImageVec(const std::vector<float> &unGammaImVec, std::vector<float> &outImVec);
2045

2146
private:

0 commit comments

Comments
 (0)