Skip to content

Commit ef6cebe

Browse files
Nan Yangnynyg
authored andcommitted
Add initialization of variables and delete empty line.
1 parent b962353 commit ef6cebe

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

modules/pcalib/src/pcalib.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ bool PhotometricCalibrator::validImgs(std::vector <Mat> &inputImgs, std::vector<
6060
if(inputImgs.empty() || exposureTime.empty() || inputImgs.size() != exposureTime.size())
6161
return false;
6262

63-
int width, height = 0;
63+
int width = 0, height = 0;
6464
for(size_t i = 0; i < inputImgs.size(); ++ i)
6565
{
6666
Mat img;
@@ -89,5 +89,4 @@ bool PhotometricCalibrator::validImgs(std::vector <Mat> &inputImgs, std::vector<
8989
}} // namespace pcalib, cv
9090

9191
#endif // __OPENCV_PCALIB_CPP__
92-
#endif // cplusplus
93-
92+
#endif // cplusplus

modules/pcalib/src/precomp.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,5 @@
4646
#include <opencv2/core.hpp>
4747
#include "opencv2/imgproc.hpp"
4848
#include "opencv2/highgui.hpp"
49-
#include "opencv2/video/tracking.hpp"
5049
#include <vector>
5150
#endif

0 commit comments

Comments
 (0)