From a5440ed85722204bcca5e1a9d20c8e09d37e6ce7 Mon Sep 17 00:00:00 2001 From: uvos Date: Sat, 10 Oct 2020 10:28:20 +0200 Subject: [PATCH] correct small typo --- main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 342e27f..2a7b0af 100644 --- a/main.cpp +++ b/main.cpp @@ -317,7 +317,7 @@ void fillMissing(cv::Mat& mat) col[x] = mat.at(x,y-1); else if(y < mat.rows && mat.at(x,y+1) >= 0) col[x] = mat.at(x,y+1); - if((x+1 < mat.cols && col[x] > col[x+1]) || (x > 0 && col[x] < col[x-1]) + if((x+1 < mat.cols && col[x] > col[x+1]) || (x > 0 && col[x] < col[x-1])) col[x] = -1; } } @@ -497,4 +497,3 @@ int main(int argc, char* argv[]) return 0; } -