Merge pull request #18261 from OrestChura:oc/fluid_convert_mask
authorOrest Chura <orest.chura@intel.com>
Fri, 18 Sep 2020 14:24:34 +0000 (17:24 +0300)
committerGitHub <noreply@github.com>
Fri, 18 Sep 2020 14:24:34 +0000 (14:24 +0000)
commit95fd61c9b4c2cbe099f84740c35587e53d55b6bb
tree6f95a11273f824f8f149dc931af81ea66e007f23
parentd1cdef596c7018540cf68e709a2ba36a07ce46e0
Merge pull request #18261 from OrestChura:oc/fluid_convert_mask

[G-API]: Fluid: add mask, extend convertTo for CV_16S

* Add Fluid `mask` kernel + Acc. and Perf. tests
 - simple cycle implementation with restrictions on mask type and input/output type like in OCV/GPU kernels (mask - CV_8UC1 only, input/output - CV_8UC1, CV_16UC1, CV_16SC1)

* Added convertions from/to 16S

* `convertTo()` perf tests refactoring
 - add testing of `alpha` and `beta` parameters
 - fixed unreliable comparison
 - added instances to OCV, Fluid and GPU tests according to the changes

* Addressing comments
 - fixed multiple-channel mistake - prohibited multiple-channeling

* Reduced perf tests
modules/gapi/perf/common/gapi_core_perf_tests.hpp
modules/gapi/perf/common/gapi_core_perf_tests_inl.hpp
modules/gapi/perf/cpu/gapi_core_perf_tests_cpu.cpp
modules/gapi/perf/cpu/gapi_core_perf_tests_fluid.cpp
modules/gapi/perf/gpu/gapi_core_perf_tests_gpu.cpp
modules/gapi/src/backends/fluid/gfluidcore.cpp
modules/gapi/test/cpu/gapi_core_tests_fluid.cpp