diff --git a/modules/imgproc/src/grabcut.cpp b/modules/imgproc/src/grabcut.cpp index 98dbf746b..4fb9b8d92 100644 --- a/modules/imgproc/src/grabcut.cpp +++ b/modules/imgproc/src/grabcut.cpp @@ -305,7 +305,7 @@ static void calcNWeights( const Mat& img, Mat& leftW, Mat& upleftW, Mat& upW, Ma } else upW.at(y,x) = 0; - if( x+1=0 ) // upright + if( x+1=0 ) // upright { Vec3d diff = color - (Vec3d)img.at(y-1,x+1); uprightW.at(y,x) = gammaDivSqrt2 * exp(-beta*diff.dot(diff));