From a4323104d4b49237002b287e2ee42734b6fbf30f Mon Sep 17 00:00:00 2001 From: even <philippe.even@loria.fr> Date: Sun, 17 May 2020 00:44:43 +0200 Subject: [PATCH] Code: Pierre's fixes --- Code/FBSD/BlurredSegment/bsdetector.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Code/FBSD/BlurredSegment/bsdetector.cpp b/Code/FBSD/BlurredSegment/bsdetector.cpp index dfed38b..60f6d56 100755 --- a/Code/FBSD/BlurredSegment/bsdetector.cpp +++ b/Code/FBSD/BlurredSegment/bsdetector.cpp @@ -407,7 +407,7 @@ int BSDetector::detect (const Pt2i &p1, const Pt2i &p2, - mydsl.manhattan (bsf->getLastLeft ()); if (mydrlf < 0) mydrlf = -mydrlf; // Case of horizontal P1P2 int expansion = 1 + mydrlf; - if (expansion < 20 && bsf->size () < (expansion * 4) / 5) + if (expansion < 20 && (int) (bsf->size ()) < (expansion * 4) / 5) return RESULT_FINAL_TOO_SPARSE; } @@ -416,7 +416,7 @@ int BSDetector::detect (const Pt2i &p1, const Pt2i &p2, if (finalFragmentationTestOn) { int bsccp = bsf->countOfConnectedPoints (fragmentMinSize); - int bssize = bsf->getAllPoints().size (); + int bssize = (int) (bsf->getAllPoints().size ()); if (bsccp < bssize / 2) return RESULT_FINAL_TOO_FRAGMENTED; } @@ -557,7 +557,7 @@ int BSDetector::staticDetect (const Pt2i &p1, const Pt2i &p2, - mydsl.manhattan (bsf->getLastLeft ()); if (mydrlf < 0) mydrlf = -mydrlf; // Case of horizontal P1P2 int expansion = 1 + mydrlf; - if (bsf->size () < expansion / 2) + if ((int) (bsf->size ()) < expansion / 2) return RESULT_FINAL_TOO_SPARSE; } @@ -566,7 +566,7 @@ int BSDetector::staticDetect (const Pt2i &p1, const Pt2i &p2, if (finalFragmentationTestOn) { int bsccp = bsf->countOfConnectedPoints (fragmentMinSize); - int bssize = bsf->getAllPoints().size (); + int bssize = (int) (bsf->getAllPoints().size ()); if (bsccp < bssize / 2) return RESULT_FINAL_TOO_FRAGMENTED; } -- GitLab