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; } -