The following issues were found
modules/video/test/test_camshift.cpp
1 issues
Line: 462
}
TEST(Video_CAMShift, accuracy) { CV_CamShiftTest test; test.safe_run(); }
TEST(Video_MeanShift, accuracy) { CV_MeanShiftTest test; test.safe_run(); }
}} // namespace
/* End of file. */
Reported by Cppcheck.
modules/video/test/test_ecc.cpp
1 issues
Line: 494
ts->set_failed_test_info(cvtest::TS::OK);
}
TEST(Video_ECC_Test_Compute, accuracy)
{
Mat testImg = (Mat_<float>(3, 3) << 1, 0, 0, 1, 0, 0, 1, 0, 0);
Mat warpedImage = (Mat_<float>(3, 3) << 0, 1, 0, 0, 1, 0, 0, 1, 0);
Mat_<unsigned char> mask = Mat_<unsigned char>::ones(testImg.rows, testImg.cols);
double ecc = computeECC(warpedImage, testImg, mask);
Reported by Cppcheck.
modules/video/test/test_estimaterigid.cpp
1 issues
Line: 182
ts->set_failed_test_info(cvtest::TS::OK);
}
TEST(Video_RigidFlow, accuracy) { CV_RigidTransform_Test test; test.safe_run(); }
}} // namespace
Reported by Cppcheck.
modules/video/test/test_kalman.cpp
1 issues
Line: 110
ts->set_failed_test_info( code );
}
TEST(Video_Kalman, accuracy) { CV_KalmanTest test; test.safe_run(); }
}} // namespace
/* End of file. */
Reported by Cppcheck.
modules/video/test/test_optflowpyrlk.cpp
1 issues
Line: 223
}
TEST(Video_OpticalFlowPyrLK, accuracy) { CV_OptFlowPyrLKTest test; test.safe_run(); }
TEST(Video_OpticalFlowPyrLK, submat)
{
// see bug #2075
std::string path = cvtest::TS::ptr()->get_data_path() + "../cv/shared/lena.png";
Reported by Cppcheck.
modules/video/test/test_trackers.cpp
1 issues
Line: 24
#include "test_trackers.impl.hpp"
//[TESTDATA]
PARAM_TEST_CASE(DistanceAndOverlap, string)
{
string dataset;
virtual void SetUp()
{
dataset = GET_PARAM(0);
Reported by Cppcheck.
modules/videoio/perf/perf_camera.impl.hpp
1 issues
Line: 19
return cameras;
}
PERF_TEST(VideoCapture_Camera, waitAny_V4L)
{
auto cameraNames = getTestCameras();
if (cameraNames.empty())
throw SkipTestException("No list of tested cameras. Use OPENCV_TEST_PERF_CAMERA_LIST parameter");
Reported by Cppcheck.
modules/videoio/perf/perf_output.cpp
1 issues
Line: 22
"python/images/QCIF_05.bmp"
};
PERF_TEST_P(VideoWriter_Writing, WriteFrame,
testing::Combine(
testing::ValuesIn(image_files),
testing::Bool()))
{
const string filename = getDataPath(get<0>(GetParam()));
Reported by Cppcheck.
modules/videoio/src/cap_dshow.cpp
1 issues
Line: 696
//------------------------------------------------
STDMETHODIMP_(ULONG) AddRef() { return 1; }
STDMETHODIMP_(ULONG) Release() { return 2; }
//------------------------------------------------
STDMETHODIMP QueryInterface(REFIID, void **ppvObject){
Reported by Cppcheck.
modules/videoio/src/cap_ffmpeg_impl.hpp
1 issues
Line: 2511
CWE codes:
758
}
if (codec_id == CV_CODEC(CODEC_ID_NONE)) {
char *p = (char *) &fourcc;
char name[] = {(char)tolower(p[0]), (char)tolower(p[1]), (char)tolower(p[2]), (char)tolower(p[3]), 0};
const AVCodecDescriptor *desc = avcodec_descriptor_get_by_name(name);
if (desc)
codec_id = desc->id;
}
Reported by Cppcheck.