opencv/modules/gapi/test/cpu
Orest Chura 3fc1c73064
Merge pull request #18510 from OrestChura:oc/boundingRect
[G-API]: findContours() and boundingRect() Standard Kernels Implementation

* Add findContours() standard kernel
 - API and documentation provided:
   - as OpenCV provides two overloads whether to calculate hierarchy or not, but they differ by only the output in sight of G-API, two different G-API functions and kernels implemented
   - G-API Imgproc documentation divided into more parts according to imgproc module parts
   - some typos connected with division into parts corrected
 - `GArray<GArray<U>>` overload for `get_out` function provided to coonvert correctly into `vector<vector<U>>`
 - OCV backend supported
 - accuracy tests provided

* Add boundingRect() standard kernel
     - API and documentation provided:
       - GOpaque<Rect> used as an output
       - as OpenCV provides two possibilities whether to take a gray-scale image or a set of 2D points (`Point2i` or `Point2f` supported), three different overloads of a single G-API function and three kernels implemented
          - for a gray-scale image the overload via `GMat`
          - for a set of `Point2i` - the one via GArray<`Point2i`>
          - set of `Point2f` -> GArray<`Point2f`>
     - OCV backend supported
     - accuracy tests provided
       - comparison function for Rects provided
     - some typos in `gapi_tests_common` corrected

* Fix precommit windows warnings

* - Addressing comments:
   - split tests
 - Fix Windows warnings

* Static_cast for warnings

* - Remove randomness
 - Fix unnecessary precision losses

* - Forgot reference for RNG

* addressing comments

* equalizeHist -> no group

* `const` addedin new functions

* Address suggestions:
 - Hierarchical -> H
 - added cv::GMatDesc::isVectorPoins()
 - added support of giving a set of points to boundingRect()

* Addressing comments
 - IoU comparison function added for Rects
 - isPointsVector moved from a GMatDesc method to a separate function in imgproc.hpp
 - enums instead of int
 - typos corrected

* Addressing comments
 - findContours: Point offset -> GOpaque<Point>
 - removed "straight" comparison for Rects, IoU available only
 - changed vectors initialization -> fix Debug test run
 - Some typos

* added comment for later upgrades

* Fix not to corrupt docs by FIXME

* Addressing commens
 - overload without offset added (as a temporary workaround)
 - checkMetaForFindingContours -> validateFindingContoursMeta
 - added ostream overload for enums used in tests
2020-11-11 12:13:10 +00:00
..
gapi_core_tests_cpu.cpp Merge pull request #18451 from OrestChura:oc/count_non_zero 2020-09-30 16:07:35 +00:00
gapi_core_tests_fluid.cpp Disabled failed test instantiations 2020-09-22 15:45:31 +03:00
gapi_imgproc_tests_cpu.cpp Merge pull request #18510 from OrestChura:oc/boundingRect 2020-11-11 12:13:10 +00:00
gapi_imgproc_tests_fluid.cpp Merge pull request #16886 from mpashchenkov:mp/ocv-gapi-add-disable 2020-04-06 15:21:08 +00:00
gapi_ocv_stateful_kernel_test_utils.hpp Enable stateful kernels in G-API OCV Backend 2020-06-04 22:14:42 +03:00
gapi_ocv_stateful_kernel_tests.cpp Merge pull request #18496 from AsyaPronina:comp_args_serialization 2020-10-07 21:48:49 +00:00
gapi_operators_tests_cpu.cpp Merge pull request #18257 from OrestChura:oc/fluid_operator_bitwise_and_scalar 2020-09-18 13:44:47 +00:00
gapi_operators_tests_fluid.cpp Merge pull request #18257 from OrestChura:oc/fluid_operator_bitwise_and_scalar 2020-09-18 13:44:47 +00:00
gapi_video_tests_cpu.cpp gapi: buildOpticalFlowPyramid() interface, CPUkernel and CPUtests implementation 2020-04-21 14:36:42 +03:00