2018-09-27 02:50:39 +08:00
|
|
|
// This file is part of OpenCV project.
|
|
|
|
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
|
|
|
// of this distribution and at http://opencv.org/license.html.
|
|
|
|
//
|
2020-04-07 23:53:24 +08:00
|
|
|
// Copyright (C) 2018-2020 Intel Corporation
|
2018-09-27 02:50:39 +08:00
|
|
|
|
|
|
|
|
2018-10-29 22:34:20 +08:00
|
|
|
#ifndef OPENCV_GAPI_IMGPROC_PERF_TESTS_HPP
|
|
|
|
#define OPENCV_GAPI_IMGPROC_PERF_TESTS_HPP
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-09-27 02:50:39 +08:00
|
|
|
#include "../../test/common/gapi_tests_common.hpp"
|
2019-06-15 00:27:19 +08:00
|
|
|
#include <opencv2/gapi/imgproc.hpp>
|
2018-09-27 02:50:39 +08:00
|
|
|
|
|
|
|
namespace opencv_test
|
|
|
|
{
|
|
|
|
|
|
|
|
using namespace perf;
|
|
|
|
|
2018-10-29 22:34:20 +08:00
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
2020-04-24 01:47:55 +08:00
|
|
|
class SepFilterPerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int, cv::GCompileArgs>> {};
|
|
|
|
class Filter2DPerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int,int, cv::GCompileArgs>> {};
|
|
|
|
class BoxFilterPerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int,int, cv::GCompileArgs>> {};
|
|
|
|
class BlurPerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int, cv::GCompileArgs>> {};
|
|
|
|
class GaussianBlurPerfTest : public TestPerfParams<tuple<compare_f, MatType,int, cv::Size, cv::GCompileArgs>> {};
|
|
|
|
class MedianBlurPerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size, cv::GCompileArgs>> {};
|
|
|
|
class ErodePerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int, cv::GCompileArgs>> {};
|
|
|
|
class Erode3x3PerfTest : public TestPerfParams<tuple<compare_f, MatType,cv::Size,int, cv::GCompileArgs>> {};
|
|
|
|
class DilatePerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int, cv::GCompileArgs>> {};
|
|
|
|
class Dilate3x3PerfTest : public TestPerfParams<tuple<compare_f, MatType,cv::Size,int, cv::GCompileArgs>> {};
|
2020-12-22 05:03:06 +08:00
|
|
|
class MorphologyExPerfTest : public TestPerfParams<tuple<compare_f,MatType,cv::Size,
|
|
|
|
cv::MorphTypes,cv::GCompileArgs>> {};
|
2020-04-24 01:47:55 +08:00
|
|
|
class SobelPerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int,int,int, cv::GCompileArgs>> {};
|
|
|
|
class SobelXYPerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int,int, cv::GCompileArgs>> {};
|
|
|
|
class LaplacianPerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int,
|
|
|
|
cv::GCompileArgs>> {};
|
|
|
|
class BilateralFilterPerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int, double,double,
|
|
|
|
cv::GCompileArgs>> {};
|
|
|
|
class CannyPerfTest : public TestPerfParams<tuple<compare_f, MatType,cv::Size,double,double,int,bool,
|
|
|
|
cv::GCompileArgs>> {};
|
|
|
|
class GoodFeaturesPerfTest : public TestPerfParams<tuple<compare_vector_f<cv::Point2f>, std::string,
|
|
|
|
int,int,double,double,int,bool,
|
|
|
|
cv::GCompileArgs>> {};
|
2021-01-24 23:41:04 +08:00
|
|
|
class FindContoursPerfTest : public TestPerfParams<tuple<CompareMats, MatType,cv::Size,
|
|
|
|
cv::RetrievalModes,
|
|
|
|
cv::ContourApproximationModes,
|
|
|
|
cv::GCompileArgs>> {};
|
|
|
|
class FindContoursHPerfTest : public TestPerfParams<tuple<CompareMats, MatType,cv::Size,
|
|
|
|
cv::RetrievalModes,
|
|
|
|
cv::ContourApproximationModes,
|
|
|
|
cv::GCompileArgs>> {};
|
2021-01-13 05:33:05 +08:00
|
|
|
class BoundingRectMatPerfTest :
|
|
|
|
public TestPerfParams<tuple<CompareRects, MatType,cv::Size,bool, cv::GCompileArgs>> {};
|
|
|
|
class BoundingRectVector32SPerfTest :
|
|
|
|
public TestPerfParams<tuple<CompareRects, cv::Size, cv::GCompileArgs>> {};
|
|
|
|
class BoundingRectVector32FPerfTest :
|
|
|
|
public TestPerfParams<tuple<CompareRects, cv::Size, cv::GCompileArgs>> {};
|
2021-01-24 23:41:04 +08:00
|
|
|
class FitLine2DMatVectorPerfTest : public TestPerfParams<tuple<CompareVecs<float, 4>,
|
|
|
|
MatType,cv::Size,cv::DistanceTypes,
|
|
|
|
cv::GCompileArgs>> {};
|
|
|
|
class FitLine2DVector32SPerfTest : public TestPerfParams<tuple<CompareVecs<float, 4>,
|
|
|
|
cv::Size,cv::DistanceTypes,
|
|
|
|
cv::GCompileArgs>> {};
|
|
|
|
class FitLine2DVector32FPerfTest : public TestPerfParams<tuple<CompareVecs<float, 4>,
|
|
|
|
cv::Size,cv::DistanceTypes,
|
|
|
|
cv::GCompileArgs>> {};
|
|
|
|
class FitLine2DVector64FPerfTest : public TestPerfParams<tuple<CompareVecs<float, 4>,
|
|
|
|
cv::Size,cv::DistanceTypes,
|
|
|
|
cv::GCompileArgs>> {};
|
|
|
|
class FitLine3DMatVectorPerfTest : public TestPerfParams<tuple<CompareVecs<float, 6>,
|
|
|
|
MatType,cv::Size,cv::DistanceTypes,
|
|
|
|
cv::GCompileArgs>> {};
|
|
|
|
class FitLine3DVector32SPerfTest : public TestPerfParams<tuple<CompareVecs<float, 6>,
|
|
|
|
cv::Size,cv::DistanceTypes,
|
|
|
|
cv::GCompileArgs>> {};
|
|
|
|
class FitLine3DVector32FPerfTest : public TestPerfParams<tuple<CompareVecs<float, 6>,
|
|
|
|
cv::Size,cv::DistanceTypes,
|
|
|
|
cv::GCompileArgs>> {};
|
|
|
|
class FitLine3DVector64FPerfTest : public TestPerfParams<tuple<CompareVecs<float, 6>,
|
|
|
|
cv::Size,cv::DistanceTypes,
|
|
|
|
cv::GCompileArgs>> {};
|
2020-04-24 01:47:55 +08:00
|
|
|
class EqHistPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
|
2020-12-15 06:45:41 +08:00
|
|
|
class BGR2RGBPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
|
2020-04-24 01:47:55 +08:00
|
|
|
class RGB2GrayPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
|
|
|
|
class BGR2GrayPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
|
|
|
|
class RGB2YUVPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
|
|
|
|
class YUV2RGBPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
|
2020-12-15 06:45:41 +08:00
|
|
|
class BGR2I420PerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
|
|
|
|
class RGB2I420PerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
|
|
|
|
class I4202BGRPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
|
|
|
|
class I4202RGBPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
|
2020-04-24 01:47:55 +08:00
|
|
|
class RGB2LabPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
|
|
|
|
class BGR2LUVPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
|
|
|
|
class LUV2BGRPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
|
|
|
|
class BGR2YUVPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
|
|
|
|
class YUV2BGRPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
|
|
|
|
class RGB2HSVPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
|
2019-06-10 19:09:31 +08:00
|
|
|
class BayerGR2RGBPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
|
|
|
|
class RGB2YUV422PerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
|
2022-01-27 20:27:41 +08:00
|
|
|
class ResizePerfTest : public TestPerfParams<tuple<compare_f, MatType, int, cv::Size, cv::Size, cv::GCompileArgs>> {};
|
|
|
|
class ResizeFxFyPerfTest : public TestPerfParams<tuple<compare_f, MatType, int, cv::Size, double, double, cv::GCompileArgs>> {};
|
|
|
|
class ResizeInSimpleGraphPerfTest : public TestPerfParams<tuple<compare_f, MatType, cv::Size, double, double, cv::GCompileArgs>> {};
|
|
|
|
class BottleneckKernelsConstInputPerfTest : public TestPerfParams<tuple<compare_f, std::string, cv::GCompileArgs>> {};
|
2020-04-08 22:05:43 +08:00
|
|
|
} // opencv_test
|
|
|
|
|
2018-10-29 22:34:20 +08:00
|
|
|
#endif //OPENCV_GAPI_IMGPROC_PERF_TESTS_HPP
|