opencv/modules/gapi/test/common
Orest Chura 986ad4ff06
Merge pull request #18857 from OrestChura:oc/kmeans
[G-API]: kmeans() Standard Kernel Implementation

* cv::gapi::kmeans kernel implementation
 - 4 overloads:
    - standard GMat - for any dimensionality
    - GMat without bestLabels initialization
    - GArray<Point2f> - for 2D
    - GArray<Point3f> - for 3D
 - Accuracy tests:
   - for every input - 2 tests
   1) without initializing. In this case, no comparison with cv::kmeans is done as kmeans uses random auto-initialization
   2) with initialization
   - in both cases, only 1 attempt is done as after first attempt kmeans initializes bestLabels randomly

* Addressing comments
 - bestLabels is returned to its original place among parameters
 - checkVector and isPointsVector functions are merged into one, shared between core.hpp & imgproc.hpp by placing it into gmat.hpp (and implementation - to gmat.cpp)
 - typos corrected

* addressing comments
 - unified names in tests
 - const added
 - typos

* Addressing comments
 - fixed the doc note
 - ddepth -> expectedDepth, `< 0 ` -> `== -1`

* Fix unsupported cases of input Mat
 - supported: multiple channels, reversed width
 - added test cases for those
 - added notes in docs
 - refactored checkVector to return dimentionality along with quantity

* Addressing comments
 - makes chackVector smaller and (maybe) clearer

* Addressing comments

* Addressing comments
 - cv::checkVector -> cv::gapi::detail

* Addressing comments
 - Changed checkVector: returns bool, quantity & dimensionality as references

* Addressing comments
 - Polishing checkVector
 - FIXME added

* Addressing discussion
 - checkVector: added overload, separate two different functionalities
 - depth assert - out of the function

* Addressing comments
 - quantity -> amount, dimensionality -> dim
 - Fix typos

* Addressing comments
 - fix docs
 - use 2 variable's definitions instead of one (for all non-trivial variables)
2020-11-30 13:18:43 +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 Merge pull request #18857 from OrestChura:oc/kmeans 2020-11-30 13:18:43 +00:00
gapi_core_tests.cpp gapi: fix tests build 2019-04-02 13:46:25 +03:00
gapi_core_tests.hpp Merge pull request #18857 from OrestChura:oc/kmeans 2020-11-30 13:18:43 +00:00
gapi_imgproc_tests_inl.hpp Merge pull request #18790 from OrestChura:oc/fitLine 2020-11-17 15:59:59 +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 #18790 from OrestChura:oc/fitLine 2020-11-17 15:59:59 +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 gapi: eliminate std::rand() and RAND_MAX from tests 2020-11-26 10:20:02 +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 #18857 from OrestChura:oc/kmeans 2020-11-30 13:18:43 +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