The following issues were found

modules/imgproc/test/ocl/test_match_template.cpp
1 issues
syntax error
Error

Line: 112

                  }
};

OCL_TEST_P(MatchTemplate, Mat)
{
    for (int j = 0; j < test_loop_times; j++)
    {
        generateTestData();


            

Reported by Cppcheck.

modules/imgproc/test/ocl/test_medianfilter.cpp
1 issues
syntax error
Error

Line: 90

                  }
};

OCL_TEST_P(MedianFilter, Mat)
{
    for (int j = 0; j < test_loop_times; j++)
    {
        generateTestData();


            

Reported by Cppcheck.

modules/imgproc/test/ocl/test_pyramids.cpp
1 issues
syntax error
Error

Line: 93

              
typedef PyrTestBase PyrDown;

OCL_TEST_P(PyrDown, Mat)
{
    for (int j = 0; j < test_loop_times; j++)
    {
        Size src_roiSize = randomSize(1, MAX_VALUE);
        Size dst_roiSize = Size(randomInt((src_roiSize.width - 1) / 2, (src_roiSize.width + 3) / 2),

            

Reported by Cppcheck.

modules/imgproc/test/ocl/test_sepfilter2d.cpp
1 issues
syntax error
Error

Line: 122

                  }
};

OCL_TEST_P(SepFilter2D, Mat)
{
    for (int j = 0; j < test_loop_times + 3; j++)
    {
        random_roi(false);


            

Reported by Cppcheck.

modules/imgproc/test/ocl/test_warp.cpp
1 issues
syntax error
Error

Line: 70

              /////////////////////////////////////////////////////////////////////////////////////////////////
// warpAffine  & warpPerspective

PARAM_TEST_CASE(WarpTestBase, MatType, Interpolation, bool, bool)
{
    int type, interpolation;
    Size dsize;
    bool useRoi, mapInverse;
    int depth;

            

Reported by Cppcheck.

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

Line: 356

                      ts->set_failed_test_info( code );
}

TEST(Imgproc_ApproxPoly, accuracy) { CV_ApproxPolyTest test; test.safe_run(); }

//Tests to make sure that unreasonable epsilon (error)
//values never get passed to the Douglas-Peucker algorithm.
TEST(Imgproc_ApproxPoly, bad_epsilon)
{

            

Reported by Cppcheck.

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

Line: 286

                      bilateralFilter(_src, _parallel_dst, _d, _sigma_color, _sigma_space);
    }

    TEST(Imgproc_BilateralFilter, accuracy)
    {
        CV_BilateralFilterTest test;
        test.safe_run();
    }


            

Reported by Cppcheck.

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

Line: 141

                  vector <Point2f> src_vecf; checking_function_work(src_vecf, 1);
}

TEST (Imgproc_BoundingRect, accuracy) { CV_BoundingRectTest test; test.safe_run(); }

}} // namespace

            

Reported by Cppcheck.

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

Line: 315

                  return code;
}

TEST(Imgproc_Canny, accuracy) { CV_CannyTest test; test.safe_run(); }
TEST(Imgproc_Canny, accuracy_deriv) { CV_CannyTest test(true); test.safe_run(); }


/*
 * Comparing OpenVX based implementation with the main one

            

Reported by Cppcheck.

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

Line: 1833

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

TEST(Imgproc_ColorGray, accuracy) { CV_ColorGrayTest test; test.safe_run(); }
TEST(Imgproc_ColorYCrCb, accuracy) { CV_ColorYCrCbTest test; test.safe_run(); }
TEST(Imgproc_ColorHSV, accuracy) { CV_ColorHSVTest test; test.safe_run(); }
TEST(Imgproc_ColorHLS, accuracy) { CV_ColorHLSTest test; test.safe_run(); }
TEST(Imgproc_ColorXYZ, accuracy) { CV_ColorXYZTest test; test.safe_run(); }
TEST(Imgproc_ColorLab, accuracy) { CV_ColorLabTest test; test.safe_run(); }

            

Reported by Cppcheck.