opencv/modules/gapi/test/common
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_compoundkernel_tests.cpp Merge pull request #17163 from AsyaPronina:gcompound_kernel_gmatp_coop 2020-08-25 13:51:43 +00:00
gapi_core_tests_inl.hpp G-API: Introduced a Text Detection sample 2020-10-21 17:25:56 +03:00
gapi_core_tests.cpp gapi: fix tests build 2019-04-02 13:46:25 +03:00
gapi_core_tests.hpp Merge pull request #18451 from OrestChura:oc/count_non_zero 2020-09-30 16:07:35 +00:00
gapi_imgproc_tests_inl.hpp Merge pull request #18510 from OrestChura:oc/boundingRect 2020-11-11 12:13:10 +00:00
gapi_imgproc_tests.cpp gapi: fix tests build 2019-04-02 13:46:25 +03:00
gapi_imgproc_tests.hpp Merge pull request #18510 from OrestChura:oc/boundingRect 2020-11-11 12:13:10 +00:00
gapi_operators_tests_inl.hpp Merge pull request #18257 from OrestChura:oc/fluid_operator_bitwise_and_scalar 2020-09-18 13:44:47 +00:00
gapi_operators_tests.cpp gapi: fix tests build 2019-04-02 13:46:25 +03:00
gapi_operators_tests.hpp Merge pull request #18257 from OrestChura:oc/fluid_operator_bitwise_and_scalar 2020-09-18 13:44:47 +00:00
gapi_parsers_tests_common.hpp Merge pull request #18287 from mpashchenkov:mp/ocv-gapi-blue-branch 2020-09-18 13:31:16 +00:00
gapi_render_tests.cpp Merge pull request #16080 from TolyaTalamanov:at/fix-mosaic-primitive 2019-12-12 19:10:14 +03:00
gapi_render_tests.hpp Implement cv::gapi::wip::draw::FText 2019-12-03 13:13:06 +03:00
gapi_tests_common.hpp Merge pull request #18510 from OrestChura:oc/boundingRect 2020-11-11 12:13:10 +00:00
gapi_tests_helpers.hpp Merge pull request #15751 from TolyaTalamanov:at/refactor-render-tests 2019-10-30 13:33:39 +03:00
gapi_video_tests_common.hpp Merge pull request #17896 from OrestChura:oc/fix_kw_videotests 2020-07-28 13:25:56 +03:00
gapi_video_tests_inl.hpp gapi: buildOpticalFlowPyramid() interface, CPUkernel and CPUtests implementation 2020-04-21 14:36:42 +03:00
gapi_video_tests.cpp gapi: Full calcOpticalFlowPyrLK implementation (2 overloads) and tests 2020-04-08 18:11:55 +03:00
gapi_video_tests.hpp gapi: buildOpticalFlowPyramid() interface, CPUkernel and CPUtests implementation 2020-04-21 14:36:42 +03:00