1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

change area() emptiness checks to empty()

This commit is contained in:
tompollok
2018-10-13 21:35:10 +02:00
parent 429a643f42
commit 0b77600718
15 changed files with 42 additions and 42 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ static Mat getVisibleFlow(InputArray flow)
static Size fitSize(const Size & sz, const Size & bounds)
{
CV_Assert(sz.area() > 0);
CV_Assert(!sz.empty());
if (sz.width > bounds.width || sz.height > bounds.height)
{
double scale = std::min((double)bounds.width / sz.width, (double)bounds.height / sz.height);