From b1bf6ad7889e8198e0f028363993fc3601f469a8 Mon Sep 17 00:00:00 2001 From: Xinyue Lu Date: Fri, 29 May 2020 16:39:04 -0400 Subject: [PATCH] Allow 0 input value --- src/minideen.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/minideen.hpp b/src/minideen.hpp index e214430..d8a1719 100644 --- a/src/minideen.hpp +++ b/src/minideen.hpp @@ -89,19 +89,19 @@ struct MiniDeen : Filter { int radius_tmp = -1; in->Read("radius", radius_tmp); - if (radius_tmp > 0) + if (radius_tmp >= 0) radius[0] = radius[1] = radius[2] = radius_tmp; radius_tmp = -1; in->Read("radiusY", radius[0]); in->Read("radiusUV", radius_tmp); - if (radius_tmp > 0) + if (radius_tmp >= 0) radius[1] = radius[2] = radius_tmp; int threshold_tmp = -1; in->Read("thrY", threshold[0]); in->Read("thrUV", threshold_tmp); - if (threshold_tmp > 0) + if (threshold_tmp >= 0) threshold[1] = threshold[2] = threshold_tmp; } in->Read("opt", opt);