diff --git a/src/common.h b/src/common.h index 3b3b437..1dbdc87 100644 --- a/src/common.h +++ b/src/common.h @@ -37,7 +37,7 @@ using namespace std; using namespace std::filesystem; #define BUF_SZ 10 -#define APP_VER "1.4.t8" +#define APP_VER "1.4.t9" struct shared_t { diff --git a/src/mo_detect.cpp b/src/mo_detect.cpp index 251a93d..1ec2d20 100644 --- a/src/mo_detect.cpp +++ b/src/mo_detect.cpp @@ -31,9 +31,9 @@ void secDiff(const Mat &imgA, const Mat &imgB, int rows, int cols, int rowOffs, { auto pnts = 0; - for (auto y = rowOffs; y < rows; y++) + for (auto y = rowOffs; y < (rowOffs + rows); y++) { - for (auto x = colOffs; x < cols; x++) + for (auto x = colOffs; x < (colOffs + cols); x++) { auto pixA = imgA.at(Point(x, y)); auto pixB = imgB.at(Point(x, y));