gapi_imgproc_perf_tests.hpp 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. // This file is part of OpenCV project.
  2. // It is subject to the license terms in the LICENSE file found in the top-level directory
  3. // of this distribution and at http://opencv.org/license.html.
  4. //
  5. // Copyright (C) 2018-2020 Intel Corporation
  6. #ifndef OPENCV_GAPI_IMGPROC_PERF_TESTS_HPP
  7. #define OPENCV_GAPI_IMGPROC_PERF_TESTS_HPP
  8. #include "../../test/common/gapi_tests_common.hpp"
  9. #include <opencv2/gapi/imgproc.hpp>
  10. namespace opencv_test
  11. {
  12. using namespace perf;
  13. //------------------------------------------------------------------------------
  14. class SepFilterPerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int, cv::GCompileArgs>> {};
  15. class Filter2DPerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int,int, cv::GCompileArgs>> {};
  16. class BoxFilterPerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int,int, cv::GCompileArgs>> {};
  17. class BlurPerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int, cv::GCompileArgs>> {};
  18. class GaussianBlurPerfTest : public TestPerfParams<tuple<compare_f, MatType,int, cv::Size, cv::GCompileArgs>> {};
  19. class MedianBlurPerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size, cv::GCompileArgs>> {};
  20. class ErodePerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int, cv::GCompileArgs>> {};
  21. class Erode3x3PerfTest : public TestPerfParams<tuple<compare_f, MatType,cv::Size,int, cv::GCompileArgs>> {};
  22. class DilatePerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int, cv::GCompileArgs>> {};
  23. class Dilate3x3PerfTest : public TestPerfParams<tuple<compare_f, MatType,cv::Size,int, cv::GCompileArgs>> {};
  24. class MorphologyExPerfTest : public TestPerfParams<tuple<compare_f,MatType,cv::Size,
  25. cv::MorphTypes,cv::GCompileArgs>> {};
  26. class SobelPerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int,int,int, cv::GCompileArgs>> {};
  27. class SobelXYPerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int,int, cv::GCompileArgs>> {};
  28. class LaplacianPerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int,
  29. cv::GCompileArgs>> {};
  30. class BilateralFilterPerfTest : public TestPerfParams<tuple<compare_f, MatType,int,cv::Size,int, double,double,
  31. cv::GCompileArgs>> {};
  32. class CannyPerfTest : public TestPerfParams<tuple<compare_f, MatType,cv::Size,double,double,int,bool,
  33. cv::GCompileArgs>> {};
  34. class GoodFeaturesPerfTest : public TestPerfParams<tuple<compare_vector_f<cv::Point2f>, std::string,
  35. int,int,double,double,int,bool,
  36. cv::GCompileArgs>> {};
  37. class FindContoursPerfTest : public TestPerfParams<tuple<CompareMats, MatType,cv::Size,
  38. cv::RetrievalModes,
  39. cv::ContourApproximationModes,
  40. cv::GCompileArgs>> {};
  41. class FindContoursHPerfTest : public TestPerfParams<tuple<CompareMats, MatType,cv::Size,
  42. cv::RetrievalModes,
  43. cv::ContourApproximationModes,
  44. cv::GCompileArgs>> {};
  45. class BoundingRectMatPerfTest :
  46. public TestPerfParams<tuple<CompareRects, MatType,cv::Size,bool, cv::GCompileArgs>> {};
  47. class BoundingRectVector32SPerfTest :
  48. public TestPerfParams<tuple<CompareRects, cv::Size, cv::GCompileArgs>> {};
  49. class BoundingRectVector32FPerfTest :
  50. public TestPerfParams<tuple<CompareRects, cv::Size, cv::GCompileArgs>> {};
  51. class FitLine2DMatVectorPerfTest : public TestPerfParams<tuple<CompareVecs<float, 4>,
  52. MatType,cv::Size,cv::DistanceTypes,
  53. cv::GCompileArgs>> {};
  54. class FitLine2DVector32SPerfTest : public TestPerfParams<tuple<CompareVecs<float, 4>,
  55. cv::Size,cv::DistanceTypes,
  56. cv::GCompileArgs>> {};
  57. class FitLine2DVector32FPerfTest : public TestPerfParams<tuple<CompareVecs<float, 4>,
  58. cv::Size,cv::DistanceTypes,
  59. cv::GCompileArgs>> {};
  60. class FitLine2DVector64FPerfTest : public TestPerfParams<tuple<CompareVecs<float, 4>,
  61. cv::Size,cv::DistanceTypes,
  62. cv::GCompileArgs>> {};
  63. class FitLine3DMatVectorPerfTest : public TestPerfParams<tuple<CompareVecs<float, 6>,
  64. MatType,cv::Size,cv::DistanceTypes,
  65. cv::GCompileArgs>> {};
  66. class FitLine3DVector32SPerfTest : public TestPerfParams<tuple<CompareVecs<float, 6>,
  67. cv::Size,cv::DistanceTypes,
  68. cv::GCompileArgs>> {};
  69. class FitLine3DVector32FPerfTest : public TestPerfParams<tuple<CompareVecs<float, 6>,
  70. cv::Size,cv::DistanceTypes,
  71. cv::GCompileArgs>> {};
  72. class FitLine3DVector64FPerfTest : public TestPerfParams<tuple<CompareVecs<float, 6>,
  73. cv::Size,cv::DistanceTypes,
  74. cv::GCompileArgs>> {};
  75. class EqHistPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
  76. class BGR2RGBPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
  77. class RGB2GrayPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
  78. class BGR2GrayPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
  79. class RGB2YUVPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
  80. class YUV2RGBPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
  81. class BGR2I420PerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
  82. class RGB2I420PerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
  83. class I4202BGRPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
  84. class I4202RGBPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
  85. class RGB2LabPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
  86. class BGR2LUVPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
  87. class LUV2BGRPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
  88. class BGR2YUVPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
  89. class YUV2BGRPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
  90. class RGB2HSVPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
  91. class BayerGR2RGBPerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
  92. class RGB2YUV422PerfTest : public TestPerfParams<tuple<compare_f, cv::Size, cv::GCompileArgs>> {};
  93. class ResizePerfTest : public TestPerfParams<tuple<compare_f, MatType, int, cv::Size, cv::Size, cv::GCompileArgs>> {};
  94. class ResizeFxFyPerfTest : public TestPerfParams<tuple<compare_f, MatType, int, cv::Size, double, double, cv::GCompileArgs>> {};
  95. class ResizeInSimpleGraphPerfTest : public TestPerfParams<tuple<compare_f, MatType, cv::Size, double, double, cv::GCompileArgs>> {};
  96. class BottleneckKernelsConstInputPerfTest : public TestPerfParams<tuple<compare_f, std::string, cv::GCompileArgs>> {};
  97. } // opencv_test
  98. #endif //OPENCV_GAPI_IMGPROC_PERF_TESTS_HPP