Skip to content

Commit 1a94d7e

Browse files
committed
change exposureTime to exposureDuration.
1 parent 5ef6a78 commit 1a94d7e

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ class Reader
2121

2222
double getTimestamp(unsigned long id) const;
2323

24-
float getExposureTime(unsigned long id) const;
24+
float getExposureDuration(unsigned long id) const;
2525

2626

2727
private:
2828
inline void loadTimestamps(const std::string &timesFile);
2929

3030
std::vector<String> files;
3131
std::vector<double> timeStamps;
32-
std::vector<float> exposureTimes;
32+
std::vector<float> exposureDurations;//All the exposure duration for images
3333

3434
int width, height;
3535

modules/photometric_calib/src/Reader.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void Reader::loadTimestamps(const std::string &timesFile)
1919
FileStorage timeFile;
2020
timeFile.open(timesFile, FileStorage::READ);
2121
timeStamps.clear();
22-
exposureTimes.clear();
22+
exposureDurations.clear();
2323

2424
CV_Assert(timeFile.isOpened());
2525

@@ -34,11 +34,11 @@ void Reader::loadTimestamps(const std::string &timesFile)
3434
for (; itTs != itTsEnd; ++itTs)
3535
timeStamps.push_back((double)*itTs);
3636
for (; itEt != itEtEnd; ++itEt)
37-
exposureTimes.push_back((float)*itEt);
37+
exposureDurations.push_back((float)*itEt);
3838

3939
timeFile.release();
4040

41-
CV_Assert(timeStamps.size() == getNumImages() && exposureTimes.size() == getNumImages());
41+
CV_Assert(timeStamps.size() == getNumImages() && exposureDurations.size() == getNumImages());
4242
}
4343

4444
Reader::Reader(const std::string &folderPath, const std::string &timesPath)
@@ -74,10 +74,11 @@ double Reader::getTimestamp(unsigned long id) const
7474
return timeStamps[id];
7575
}
7676

77-
float Reader::getExposureTime(unsigned long id) const
77+
float Reader::getExposureDuration(unsigned long id) const
7878
{
79-
CV_Assert(id < exposureTimes.size());
80-
return exposureTimes[id];
79+
CV_Assert(id < exposureDurations.size());
80+
return exposureDurations[id];
81+
}
8182
}
8283

8384
}} // namespace photometric_calib, cv

0 commit comments

Comments
 (0)