The following issues were found

modules/stitching/perf/opencl/perf_warpers.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: 104

                  Mat K, R;
};

CV_ENUM(WarperType, SphericalWarperType, CylindricalWarperType, PlaneWarperType, AffineWarperType)

typedef tuple<Size, WarperType> StitchingWarpersParams;
typedef TestBaseWithParam<StitchingWarpersParams> StitchingWarpersFixture;

static void prepareWarperSrc(InputOutputArray src, Size srcSize)

            

Reported by Cppcheck.

modules/stitching/perf/perf_estimators.cpp
1 issues
syntax error
Error

Line: 19

              #define WORK_MEGAPIX 0.6
#define AFFINE_FUNCTIONS testing::Values("affinePartial", "affine")

PERF_TEST_P(bundleAdjuster, affine, testing::Combine(TEST_DETECTORS, AFFINE_FUNCTIONS))
{
    Mat img1, img1_full = imread(getDataPath("stitching/s1.jpg"));
    Mat img2, img2_full = imread(getDataPath("stitching/s2.jpg"));
    float scale1 = (float)std::min(1.0, sqrt(WORK_MEGAPIX * 1e6 / img1_full.total()));
    float scale2 = (float)std::min(1.0, sqrt(WORK_MEGAPIX * 1e6 / img2_full.total()));

            

Reported by Cppcheck.

modules/stitching/perf/perf_matchers.cpp
1 issues
syntax error
Error

Line: 26

              #define TEST_DETECTORS testing::Values<string>("orb")
#endif

PERF_TEST_P(FeaturesFinderVec, ParallelFeaturesFinder, NUMBER_IMAGES)
{
    Mat img = imread( getDataPath("stitching/a1.png") );
    vector<Mat> imgs(GetParam(), img);
    vector<detail::ImageFeatures> features(imgs.size());


            

Reported by Cppcheck.

modules/stitching/perf/perf_stich.cpp
1 issues
syntax error
Error

Line: 30

              #define TEST_EXP_COMP_MODE testing::Values("gain", "channels", "blocks_gain", "blocks_channels")
#define AFFINE_DATASETS testing::Values("s", "budapest", "newspaper", "prague")

PERF_TEST_P(stitch, a123, TEST_DETECTORS)
{
    Mat pano;

    vector<Mat> imgs;
    imgs.push_back( imread( getDataPath("stitching/a1.png") ) );

            

Reported by Cppcheck.

modules/stitching/src/seam_finders.cpp
1 issues
SymbolDatabase bailout; unhandled code
Error

Line: 1108

              }


class GraphCutSeamFinder::Impl CV_FINAL : public PairwiseSeamFinder
{
public:
    Impl(int cost_type, float terminal_cost, float bad_region_penalty)
        : cost_type_(cost_type), terminal_cost_(terminal_cost), bad_region_penalty_(bad_region_penalty) {}


            

Reported by Cppcheck.

modules/stitching/test/ocl/test_warpers.cpp
1 issues
syntax error
Error

Line: 85

              
typedef WarperTestBase SphericalWarperTest;

OCL_TEST_F(SphericalWarperTest, Mat)
{
    for (int j = 0; j < test_loop_times; j++)
    {
        generateTestData();


            

Reported by Cppcheck.

modules/stitching/test/test_blenders.cuda.cpp
1 issues
syntax error
Error

Line: 65

                      }
    }

TEST(CUDA_MultiBandBlender, Accuracy)
{
    Mat image1 = imread(string(cvtest::TS::ptr()->get_data_path()) + "cv/shared/baboon.png");
    Mat image2 = imread(string(cvtest::TS::ptr()->get_data_path()) + "cv/shared/lena.png");
    ASSERT_EQ(image1.rows, image2.rows); ASSERT_EQ(image1.cols, image2.cols);


            

Reported by Cppcheck.

modules/stitching/test/test_exposure_compensate.cpp
1 issues
syntax error
Error

Line: 21

                  return std::min(psnr, cvtest::PSNR(src1_channels[2], src2_channels[2]));
}

TEST(ExposureCompensate, SimilarityThreshold)
{
    UMat source;
    imread(cvtest::TS::ptr()->get_data_path() + "stitching/s1.jpg").copyTo(source);

    UMat image1 = source.clone();

            

Reported by Cppcheck.

modules/stitching/test/test_matchers.cpp
1 issues
syntax error
Error

Line: 85

              
#endif // HAVE_OPENCV_XFEATURES2D && OPENCV_ENABLE_NONFREE

TEST(ParallelFeaturesFinder, IsSameWithSerial)
{
    Ptr<Feature2D> para_finder = ORB::create();
    Ptr<Feature2D> serial_finder = ORB::create();
    Mat img  = imread(string(cvtest::TS::ptr()->get_data_path()) + "stitching/a3.png", IMREAD_GRAYSCALE);


            

Reported by Cppcheck.

modules/stitching/test/test_reprojection.cpp
1 issues
syntax error
Error

Line: 35

              };


TEST_F(ReprojectionTest, PlaneWarper)
{
    Ptr<WarperCreator> creator = makePtr<PlaneWarper>();
    for (size_t i = 0; i < TEST_COUNT; ++i) {
        TestReprojection(creator->create(1), Point2f(rng.uniform(-1.f, 1.f), rng.uniform(-1.f, 1.f)));
    }

            

Reported by Cppcheck.