Skip to content

Commit 616c25e

Browse files
committed
add Doxygen documentation
1 parent de6d4a8 commit 616c25e

File tree

1 file changed

+34
-0
lines changed
  • modules/photometric_calib/include/opencv2/photometric_calib

1 file changed

+34
-0
lines changed

modules/photometric_calib/include/opencv2/photometric_calib/Reader.hpp

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,56 @@ namespace cv { namespace photometric_calib{
1515
//! @addtogroup photometric_calib
1616
//! @{
1717

18+
/*!
19+
* @brief Class for reading the sequence used for photometric calibration. Both the folder path of the sequence
20+
* and the path of time file should be provided. The images of the sequence should be of format CV_8U. The time
21+
* file should be .yaml or .yml. In the time file, the timestamps and exposure duration of the corresponding images
22+
* of the sequence should be provided.
23+
*
24+
* The image paths are stored in std::vector<String> images, timestamps are stored in std::vector<double> timeStamps,
25+
* exposure duration is stored in std::vector<float> exposureTimes
26+
*/
27+
1828
class Reader
1929
{
2030
public:
31+
/*!
32+
* @brief Constructor
33+
* @param folderPath the path of folder which contains the images
34+
* @param timesPath the path of time file
35+
*/
2136
Reader(const std::string &folderPath, const std::string &timesPath);
2237

38+
/*!
39+
* @return the amount of images loaded
40+
*/
2341
unsigned long getNumImages() const;
2442

43+
44+
/*!
45+
* @brief Given the id of the image and return its timestamp value. id is in fact just the index of the image in the
46+
* vector contains all the images.
47+
* @param id
48+
* @return timestamp of the id^th image.
49+
*/
2550
double getTimestamp(unsigned long id) const;
2651

52+
/*!
53+
* @brief Given the id of the image and return its exposure duration when is was taken.
54+
* @param id
55+
* @return exposure duration of the image.
56+
*/
2757
float getExposureDuration(unsigned long id) const;
2858

2959
int getWidth() const;
3060
int getHeight() const;
3161
const std::string &getFolderPath() const;
3262

3363
private:
64+
/*!
65+
* @brief Load timestamps and exposure duration.
66+
* @param timesFile
67+
*/
3468
inline void loadTimestamps(const std::string &timesFile);
3569

3670
std::vector<String> images; //All the names/paths of images

0 commit comments

Comments
 (0)