diff --git a/Code/FBSD/BlurredSegment/bsdetector.cpp b/Code/FBSD/BlurredSegment/bsdetector.cpp index dfed38b79fbbba404ef82419d1977c925c02e6b7..60f6d5687906d974dff10997d7c5f45f2da45a30 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; }