File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
modules/photometric_calib
include/opencv2/photometric_calib Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ class Reader
21
21
22
22
double getTimestamp (unsigned long id) const ;
23
23
24
- float getExposureTime (unsigned long id) const ;
24
+ float getExposureDuration (unsigned long id) const ;
25
25
26
26
27
27
private:
28
28
inline void loadTimestamps (const std::string ×File);
29
29
30
30
std::vector<String> files;
31
31
std::vector<double > timeStamps;
32
- std::vector<float > exposureTimes;
32
+ std::vector<float > exposureDurations; // All the exposure duration for images
33
33
34
34
int width, height;
35
35
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ void Reader::loadTimestamps(const std::string ×File)
19
19
FileStorage timeFile;
20
20
timeFile.open (timesFile, FileStorage::READ);
21
21
timeStamps.clear ();
22
- exposureTimes .clear ();
22
+ exposureDurations .clear ();
23
23
24
24
CV_Assert (timeFile.isOpened ());
25
25
@@ -34,11 +34,11 @@ void Reader::loadTimestamps(const std::string ×File)
34
34
for (; itTs != itTsEnd; ++itTs)
35
35
timeStamps.push_back ((double )*itTs);
36
36
for (; itEt != itEtEnd; ++itEt)
37
- exposureTimes .push_back ((float )*itEt);
37
+ exposureDurations .push_back ((float )*itEt);
38
38
39
39
timeFile.release ();
40
40
41
- CV_Assert (timeStamps.size () == getNumImages () && exposureTimes .size () == getNumImages ());
41
+ CV_Assert (timeStamps.size () == getNumImages () && exposureDurations .size () == getNumImages ());
42
42
}
43
43
44
44
Reader::Reader (const std::string &folderPath, const std::string ×Path)
@@ -74,10 +74,11 @@ double Reader::getTimestamp(unsigned long id) const
74
74
return timeStamps[id];
75
75
}
76
76
77
- float Reader::getExposureTime (unsigned long id) const
77
+ float Reader::getExposureDuration (unsigned long id) const
78
78
{
79
- CV_Assert (id < exposureTimes.size ());
80
- return exposureTimes[id];
79
+ CV_Assert (id < exposureDurations.size ());
80
+ return exposureDurations[id];
81
+ }
81
82
}
82
83
83
84
}} // namespace photometric_calib, cv
You can’t perform that action at this time.
0 commit comments