The following issues were found
modules/imgcodecs/test/test_read_write.cpp
1 issues
Line: 90
//==================================================================================================
INSTANTIATE_TEST_CASE_P(/*nothing*/, Imgcodecs_Resize,
testing::Combine(
testing::ValuesIn(images),
testing::ValuesIn(resize_flag_and_dims)
)
);
Reported by Cppcheck.
modules/imgcodecs/test/test_tiff.cpp
1 issues
Line: 49
EXPECT_EQ(0, remove(file4.c_str()));
}
TEST(Imgcodecs_Tiff, write_read_16bit_big_little_endian)
{
// see issue #2601 "16-bit Grayscale TIFF Load Failures Due to Buffer Underflow and Endianness"
// Setup data for two minimal 16-bit grayscale TIFF files in both endian formats
uchar tiff_sample_data[2][86] = { {
Reported by Cppcheck.
modules/imgcodecs/test/test_webp.cpp
1 issues
Line: 59
EXPECT_TRUE(cvtest::norm(img, img_webp, NORM_INF) == 0);
}
TEST(Imgcodecs_WebP, encode_decode_lossy_webp)
{
const string root = cvtest::TS::ptr()->get_data_path();
std::string input = root + "../cv/shared/lena.png";
cv::Mat img = cv::imread(input);
ASSERT_FALSE(img.empty());
Reported by Cppcheck.
modules/imgproc/perf/opencl/perf_3vs4.cpp
1 issues
Line: 23
Pure = 0, Split, Convert
};
CV_ENUM(Modes, Pure, Split, Convert)
typedef tuple <Size, MatType, Modes> _3vs4Params;
typedef TestBaseWithParam<_3vs4Params> _3vs4_Fixture;
OCL_PERF_TEST_P(_3vs4_Fixture, Resize,
Reported by Cppcheck.
modules/imgproc/perf/opencl/perf_accumulate.cpp
1 issues
Line: 79
typedef Size_MatType AccumulateSquareFixture;
OCL_PERF_TEST_P(AccumulateSquareFixture, AccumulateSquare,
::testing::Combine(OCL_TEST_SIZES, OCL_TEST_TYPES))
{
Size_MatType_t params = GetParam();
const Size srcSize = get<0>(params);
const int srcType = get<1>(params), cn = CV_MAT_CN(srcType), dstType = CV_32FC(cn);
Reported by Cppcheck.
modules/imgproc/perf/opencl/perf_color.cpp
1 issues
Line: 57
///////////// cvtColor////////////////////////
CV_ENUM(ConversionTypes, COLOR_RGB2GRAY, COLOR_RGB2BGR, COLOR_RGB2YUV, COLOR_YUV2RGB, COLOR_RGB2YCrCb,
COLOR_YCrCb2RGB, COLOR_RGB2XYZ, COLOR_XYZ2RGB, COLOR_RGB2HSV, COLOR_HSV2RGB, COLOR_RGB2HLS,
COLOR_HLS2RGB, COLOR_BGR5652BGR, COLOR_BGR2BGR565, COLOR_RGBA2mRGBA, COLOR_mRGBA2RGBA,
COLOR_RGB2Lab, COLOR_Lab2BGR, COLOR_RGB2Luv, COLOR_Luv2LBGR, COLOR_YUV2RGB_NV12, COLOR_YUV2RGB_IYUV,
COLOR_YUV2GRAY_420, COLOR_RGB2YUV_IYUV, COLOR_YUV2RGB_YUY2, COLOR_YUV2GRAY_YUY2)
Reported by Cppcheck.
modules/imgproc/perf/opencl/perf_filters.cpp
1 issues
Line: 259
SANITY_CHECK_NOTHING();
}
INSTANTIATE_TEST_CASE_P(/*nothing*/, OCL_GaussianBlurFixture,
::testing::Combine(
OCL_TEST_SIZES,
OCL_TEST_TYPES,
OCL_PERF_ENUM(3, 5, 7)
)
Reported by Cppcheck.
modules/imgproc/perf/opencl/perf_gftt.cpp
1 issues
Line: 85
SANITY_CHECK(dst);
}
OCL_PERF_TEST_P(GoodFeaturesToTrackFixture, GoodFeaturesToTrackWithQuality,
::testing::Combine(OCL_PERF_ENUM(String("gpu/opticalflow/rubberwhale1.png")),
OCL_PERF_ENUM(3.0), Bool()))
{
GoodFeaturesToTrackParams params = GetParam();
const String fileName = get<0>(params);
Reported by Cppcheck.
modules/imgproc/perf/opencl/perf_houghlines.cpp
1 issues
Line: 30
typedef tuple<Size, double, double> ImageSize_RhoStep_ThetaStep_t;
typedef TestBaseWithParam<ImageSize_RhoStep_ThetaStep_t> HoughLinesFixture;
OCL_PERF_TEST_P(HoughLinesFixture, HoughLines, Combine(OCL_TEST_SIZES,
Values( 0.1, 1 ),
Values( CV_PI / 180.0, 0.1 )))
{
const Size srcSize = get<0>(GetParam());
double rhoStep = get<1>(GetParam());
Reported by Cppcheck.
modules/imgproc/perf/opencl/perf_imgproc.cpp
1 issues
Line: 126
/////////// CopyMakeBorder //////////////////////
CV_ENUM(Border, BORDER_CONSTANT, BORDER_REPLICATE, BORDER_REFLECT, BORDER_WRAP, BORDER_REFLECT_101)
typedef tuple<Size, MatType, Border> CopyMakeBorderParamType;
typedef TestBaseWithParam<CopyMakeBorderParamType> CopyMakeBorderFixture;
OCL_PERF_TEST_P(CopyMakeBorderFixture, CopyMakeBorder,
Reported by Cppcheck.