Commit 94a5bf88 authored by Maria Dimashova's avatar Maria Dimashova

fixed #1048

parent 62b96646
......@@ -260,7 +260,11 @@ double calcBeta( const Mat& img )
}
}
}
beta = 1.f / (2 * beta/(4*img.cols*img.rows - 3*img.cols - 3*img.rows + 2) );
if( beta <= std::numeric_limits<double>::epsilon() )
beta = 0;
else
beta = 1.f / (2 * beta/(4*img.cols*img.rows - 3*img.cols - 3*img.rows + 2) );
return beta;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment