The following issues were found

modules/imgproc/test/test_connectedcomponents.cpp
1 issues
syntax error
Error

Line: 136

                  ts->set_failed_test_info(cvtest::TS::OK);
}

TEST(Imgproc_ConnectedComponents, regression) { CV_ConnectedComponentsTest test; test.safe_run(); }

TEST(Imgproc_ConnectedComponents, grana_buffer_overflow)
{
    cv::Mat darkMask;
    darkMask.create(31, 87, CV_8U);

            

Reported by Cppcheck.

modules/imgproc/test/test_contours.cpp
1 issues
syntax error
Error

Line: 411

                  return code;
}

TEST(Imgproc_FindContours, accuracy) { CV_FindContourTest test; test.safe_run(); }

//rotate/flip a quadrant appropriately
static void rot(int n, int *x, int *y, int rx, int ry)
{
    if (ry == 0) {

            

Reported by Cppcheck.

modules/imgproc/test/test_convhull.cpp
1 issues
syntax error
Error

Line: 1091

              *                                 minEnclosingCircle Test 3                              *
\****************************************************************************************/

TEST(Imgproc_minEnclosingCircle, basic_test)
{
    vector<Point2f> pts;
    pts.push_back(Point2f(0, 0));
    pts.push_back(Point2f(10, 0));
    pts.push_back(Point2f(5, 1));

            

Reported by Cppcheck.

modules/imgproc/test/test_cvtyuv.cpp
1 issues
There is an unknown macro here somewhere. Configuration is required. If CV_ENUM is a macro then please configure it.
Error

Line: 614

                  GRAYwriter* grayWriter_;
};

CV_ENUM(YUVCVTS, COLOR_YUV2RGB_NV12, COLOR_YUV2BGR_NV12, COLOR_YUV2RGB_NV21, COLOR_YUV2BGR_NV21,
                 COLOR_YUV2RGBA_NV12, COLOR_YUV2BGRA_NV12, COLOR_YUV2RGBA_NV21, COLOR_YUV2BGRA_NV21,
                 COLOR_YUV2RGB_YV12, COLOR_YUV2BGR_YV12, COLOR_YUV2RGB_IYUV, COLOR_YUV2BGR_IYUV,
                 COLOR_YUV2RGBA_YV12, COLOR_YUV2BGRA_YV12, COLOR_YUV2RGBA_IYUV, COLOR_YUV2BGRA_IYUV,
                 COLOR_YUV2RGB_UYVY, COLOR_YUV2BGR_UYVY, COLOR_YUV2RGBA_UYVY, COLOR_YUV2BGRA_UYVY,
                 COLOR_YUV2RGB_YUY2, COLOR_YUV2BGR_YUY2, COLOR_YUV2RGB_YVYU, COLOR_YUV2BGR_YVYU,

            

Reported by Cppcheck.

modules/imgproc/test/test_distancetransform.cpp
1 issues
syntax error
Error

Line: 284

              }


TEST(Imgproc_DistanceTransform, accuracy) { CV_DisTransTest test; test.safe_run(); }

BIGDATA_TEST(Imgproc_DistanceTransform, large_image_12218)
{
    const int lls_maxcnt = 79992000;   // labels's maximum count
    const int lls_mincnt = 1;          // labels's minimum count

            

Reported by Cppcheck.

modules/imgproc/test/test_drawing.cpp
1 issues
syntax error
Error

Line: 429

                  img = img(Rect(32768, 0, 600, 400)).clone();
}

TEST(Drawing,    cpp_regression) { CV_DrawingTest_CPP test; test.safe_run(); }
TEST(Drawing,    far_regression) { CV_DrawingTest_Far test; test.safe_run(); }

class CV_FillConvexPolyTest : public cvtest::BaseTest
{
public:

            

Reported by Cppcheck.

modules/imgproc/test/test_emd.cpp
1 issues
syntax error
Error

Line: 90

                      ts->set_failed_test_info( code );
}

TEST(Imgproc_EMD, regression) { CV_EMDTest test; test.safe_run(); }

}} // namespace
/* End of file. */

            

Reported by Cppcheck.

modules/imgproc/test/test_filter.cpp
1 issues
syntax error
Error

Line: 1851

              
///////////////////////////////////////////////////////////////////////////////////

TEST(Imgproc_Erode, accuracy) { CV_ErodeTest test; test.safe_run(); }
TEST(Imgproc_Dilate, accuracy) { CV_DilateTest test; test.safe_run(); }
TEST(Imgproc_MorphologyEx, accuracy) { CV_MorphExTest test; test.safe_run(); }
TEST(Imgproc_Filter2D, accuracy) { CV_FilterTest test; test.safe_run(); }
TEST(Imgproc_Sobel, accuracy) { CV_SobelTest test; test.safe_run(); }
TEST(Imgproc_SpatialGradient, accuracy) { CV_SpatialGradientTest test; test.safe_run(); }

            

Reported by Cppcheck.

modules/imgproc/test/test_fitellipse.cpp
1 issues
syntax error
Error

Line: 35

                  return check_pt_in_ellipse(mass_center, ellipse);
}

TEST(Imgproc_FitEllipse_Issue_4515, accuracy) {
    vector<Point2f> pts;
    pts.push_back(Point2f(327, 317));
    pts.push_back(Point2f(328, 316));
    pts.push_back(Point2f(329, 315));
    pts.push_back(Point2f(330, 314));

            

Reported by Cppcheck.

modules/imgproc/test/test_fitellipse_ams.cpp
1 issues
syntax error
Error

Line: 79

                  EXPECT_TRUE(AMSGoodQ);
}

TEST(Imgproc_FitEllipseAMS_Issue_2, accuracy) {
    vector<Point2f>pts;
    pts.push_back(Point2f(436.59985753246326f, 99.52113368023126f));
    pts.push_back(Point2f(454.40214161915856f, 160.47565296546912f));
    pts.push_back(Point2f(406.01996690372687f, 215.41999534561575f));
    pts.push_back(Point2f(362.8738685722881f, 262.1842668997318f));

            

Reported by Cppcheck.