platform/upstream/opencv.git
5 years agocalib3d: fix format in findChessboardCornersSB doxygen
Guillaume Jacob [Thu, 18 Jul 2019 08:04:47 +0000 (10:04 +0200)]
calib3d: fix format in findChessboardCornersSB doxygen

5 years agoMerge pull request #15061 from AsyaPronina:dev/fix_merge_issue
Alexander Alekhin [Tue, 16 Jul 2019 18:00:50 +0000 (21:00 +0300)]
Merge pull request #15061 from AsyaPronina:dev/fix_merge_issue

5 years agoFixed issue happened during merge
AsyaPronina [Tue, 16 Jul 2019 17:47:34 +0000 (20:47 +0300)]
Fixed issue happened during merge

5 years agoMerge pull request #15024 from alalek:android_stl_cxx_shared
Alexander Alekhin [Tue, 16 Jul 2019 17:10:04 +0000 (17:10 +0000)]
Merge pull request #15024 from alalek:android_stl_cxx_shared

5 years agoMerge pull request #14945 from andrey-golubev:delete_bool
Andrey Golubev [Tue, 16 Jul 2019 16:04:18 +0000 (19:04 +0300)]
Merge pull request #14945 from andrey-golubev:delete_bool

G-API: clean up accuracy tests (#14945)

* Delete createOutputMatrices flag

Update the way compile args function is created

Fix instantiation suffix print function

* Update comment (NB)

* Make printable comparison functions

* Use defines instead of objects for compile args

* Remove custom printers, use operator<< overload

* Remove SAME_TYPE and use -1 instead

* Delete createOutputMatrices flag in new tests

* Fix GetParam() printed values

* Update Resize tests: use CompareF object

* Address code review feedback

* Add default cases for operator<< overloads

* change throw to GAPI_Assert

5 years agoMerge pull request #15012 from andrey-golubev:test_output
Andrey Golubev [Tue, 16 Jul 2019 16:01:45 +0000 (19:01 +0300)]
Merge pull request #15012 from andrey-golubev:test_output

G-API: Add output allocation tests for backends (#15012)

* Add output tests for backends

* Fix large size test: output is in fact reallocated

* Use cv::Mat copies for reallocation tracking

* Separate LargeSizeWithCorrectSubmatrix test

* Rename backed output allocation tests

* Address code review feedback

Update test names

Add illustrative "expect (non-)empty" checks

Rename mat "copy" to mat reference

Add more pointer checks

* Add illustrative checks

5 years agoMerge pull request #15021 from andrey-golubev:gapi_fix_standalone_exports
Andrey Golubev [Tue, 16 Jul 2019 15:53:51 +0000 (18:53 +0300)]
Merge pull request #15021 from andrey-golubev:gapi_fix_standalone_exports

* Fix G-API export specifier in standalone build

* Make dummy GAPI_EXPORTS in case of non-OpenCV builds

* Add old version under #if 0

5 years agoMerge pull request #14968 from anton-potapov:fluid_internal_parallellism
Alexander Alekhin [Tue, 16 Jul 2019 14:22:06 +0000 (14:22 +0000)]
Merge pull request #14968 from anton-potapov:fluid_internal_parallellism

5 years agoFluid Internal Parallelism
Anton Potapov [Wed, 3 Jul 2019 08:35:54 +0000 (11:35 +0300)]
Fluid Internal Parallelism

 - Added new graph compile time argument to specify multiple independent
ROIs (Tiles)
 - Added new "executable" with serial loop other user specified
ROIs(Tiles)
 - refactored graph traversal code into separate function to be called
once
 - added saturate cast to Fluid AddCsimple test kernel

5 years agoMerge pull request #15053 from SciMad:fix-error-message
Alexander Alekhin [Tue, 16 Jul 2019 09:55:05 +0000 (09:55 +0000)]
Merge pull request #15053 from SciMad:fix-error-message

5 years agoFix error message on invalid seam finder parameter
Madhav [Tue, 16 Jul 2019 07:42:04 +0000 (13:27 +0545)]
Fix error message on invalid seam finder parameter

5 years agoMerge pull request #15049 from alalek:disable_14850
Alexander Alekhin [Mon, 15 Jul 2019 16:27:45 +0000 (16:27 +0000)]
Merge pull request #15049 from alalek:disable_14850

5 years agocmake: disable WITH_NVCUVID by default due build failures
Alexander Alekhin [Mon, 15 Jul 2019 14:09:07 +0000 (17:09 +0300)]
cmake: disable WITH_NVCUVID by default due build failures

5 years agoandroid: change ANDROID_STL='c++_shared'
Alexander Alekhin [Thu, 11 Jul 2019 20:04:05 +0000 (20:04 +0000)]
android: change ANDROID_STL='c++_shared'

- fixes crashes in face-detector application
- libc++_shared.so is bundled automatically via CMake helper project

5 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Fri, 12 Jul 2019 18:43:27 +0000 (18:43 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

5 years agoMerge pull request #15026 from terfendail:gaussian_fix
Alexander Alekhin [Fri, 12 Jul 2019 18:31:09 +0000 (18:31 +0000)]
Merge pull request #15026 from terfendail:gaussian_fix

5 years agoMerge pull request #15025 from alalek:issue_14281
Alexander Alekhin [Fri, 12 Jul 2019 15:28:44 +0000 (15:28 +0000)]
Merge pull request #15025 from alalek:issue_14281

5 years agoFix pixel value evaluation overflow in bit-exact GaussianBlur implementation
Vitaly Tuzov [Thu, 11 Jul 2019 22:53:49 +0000 (01:53 +0300)]
Fix pixel value evaluation overflow in bit-exact GaussianBlur implementation

5 years agoMerge pull request #14996 from l-bat:ocv_deconv3d
Lubov Batanina [Fri, 12 Jul 2019 12:51:44 +0000 (15:51 +0300)]
Merge pull request #14996 from l-bat:ocv_deconv3d

* Support Deconvolution3D on IE backend

* Add test tag

* Fix tests

5 years agoimgproc: fix unaligned memory access
Alexander Alekhin [Thu, 11 Jul 2019 20:49:47 +0000 (20:49 +0000)]
imgproc: fix unaligned memory access

may cause crashes on ARM platform

5 years agoMerge pull request #14842 from l-bat:ocv_conv3d
Lubov Batanina [Thu, 11 Jul 2019 17:13:52 +0000 (20:13 +0300)]
Merge pull request #14842 from l-bat:ocv_conv3d

* Support Conv3D on OCV backend

* Add header

* Add perf tests

* Support pool3d

* Enable Resnet34_kinetics on OCV backend

* Add test

* Fix conv

* Optimize Conv2D

5 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Tue, 9 Jul 2019 19:57:57 +0000 (19:57 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

5 years agoMerge pull request #15001 from antmicro:v4l2-y10-support
Alexander Alekhin [Tue, 9 Jul 2019 14:34:11 +0000 (14:34 +0000)]
Merge pull request #15001 from antmicro:v4l2-y10-support

5 years agoMerge pull request #14989 from alalek:issue_14978
Alexander Alekhin [Tue, 9 Jul 2019 14:14:06 +0000 (14:14 +0000)]
Merge pull request #14989 from alalek:issue_14978

5 years agoMerge pull request #15000 from mshabunin:fix-videoio-writer
Alexander Alekhin [Tue, 9 Jul 2019 12:59:09 +0000 (12:59 +0000)]
Merge pull request #15000 from mshabunin:fix-videoio-writer

5 years agoV4L2: Add V4L2_PIX_FMT_Y10 (10 bit grey) support
Tomasz Gorochowik [Tue, 9 Jul 2019 12:00:17 +0000 (14:00 +0200)]
V4L2: Add V4L2_PIX_FMT_Y10 (10 bit grey) support

5 years agoFixed video writer filename check for plugins
Maksim Shabunin [Tue, 9 Jul 2019 11:08:29 +0000 (14:08 +0300)]
Fixed video writer filename check for plugins

5 years agoMerge pull request #14811 from jxu:ubuntu-doc-fix
Alexander Alekhin [Mon, 8 Jul 2019 16:47:19 +0000 (16:47 +0000)]
Merge pull request #14811 from jxu:ubuntu-doc-fix

5 years agoFix python setup in ubuntu dependencies
jxu [Fri, 14 Jun 2019 21:57:28 +0000 (17:57 -0400)]
Fix python setup in ubuntu dependencies

5 years agoMerge pull request #14888 from vchiluka5:NVIDIA_Optical_Flow
Alexander Alekhin [Sun, 7 Jul 2019 14:20:53 +0000 (17:20 +0300)]
Merge pull request #14888 from vchiluka5:NVIDIA_Optical_Flow

5 years agocmake: workaround to fix link issues with stubs/libcuda.so.1
Alexander Alekhin [Fri, 5 Jul 2019 23:10:41 +0000 (23:10 +0000)]
cmake: workaround to fix link issues with stubs/libcuda.so.1

5 years agoimgcodecs: force reshaping of imdecode() input into a single row
Alexander Alekhin [Sat, 6 Jul 2019 10:06:03 +0000 (10:06 +0000)]
imgcodecs: force reshaping of imdecode() input into a single row

OpenCV upstream stuff may reinterpret vector as column.

5 years agoMerge pull request #14981 from alalek:android_camera_use_calc_frame_size_method
Alexander Alekhin [Sat, 6 Jul 2019 08:20:20 +0000 (08:20 +0000)]
Merge pull request #14981 from alalek:android_camera_use_calc_frame_size_method

5 years agoMerge pull request #14983 from tomoaki0705:fixOclCvtColorMRGBA
Alexander Alekhin [Fri, 5 Jul 2019 09:31:08 +0000 (09:31 +0000)]
Merge pull request #14983 from tomoaki0705:fixOclCvtColorMRGBA

5 years agofix test failure of OCL_ImgProc/CvtColor8u.mRGBA2RGBA
Tomoaki Teshima [Fri, 5 Jul 2019 02:22:22 +0000 (11:22 +0900)]
fix test failure of OCL_ImgProc/CvtColor8u.mRGBA2RGBA

5 years agoandroid: JavaCamera2View use calculateCameraFrameSize() method
Alexander Alekhin [Thu, 4 Jul 2019 21:41:14 +0000 (21:41 +0000)]
android: JavaCamera2View use calculateCameraFrameSize() method

from CameraBridgeViewBase (common base with JavaCameraView)

5 years agoMerge pull request #14858 from dvd42:instancenorm_onnx
Diego [Thu, 4 Jul 2019 18:15:04 +0000 (20:15 +0200)]
Merge pull request #14858 from dvd42:instancenorm_onnx

Instancenorm onnx (#14858)

* Onnx unsupported operation handling

* instance norm implementation

* Revert "Onnx unsupported operation handling"

* instance norm layer test

* onnx instancenorm layer

5 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Thu, 4 Jul 2019 15:44:13 +0000 (18:44 +0300)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

5 years agoMerge pull request #14917 from rgarnov:gapi_planar_kernels
Ruslan Garnov [Thu, 4 Jul 2019 15:19:09 +0000 (18:19 +0300)]
Merge pull request #14917 from rgarnov:gapi_planar_kernels

G-API planar kernels (#14917)

* Added resizeP with tests

* NV12 planar filters

* fix warnings in ResizeP test

* fix out mat ocv warning

* sz_on - > sz rename

* cpu tests new signature

* try to fix resizeP test

* trailing spaces remove

* doxygen doc fixed

* doxygen minor fix

* more doxygen fixes

* Doxygen corrected and extended after review.

5 years agoMerge pull request #14970 from terfendail:undistort_avx2_fix
Alexander Alekhin [Thu, 4 Jul 2019 14:01:27 +0000 (14:01 +0000)]
Merge pull request #14970 from terfendail:undistort_avx2_fix

5 years agoFixed initUndistortRectifyMap AVX2 implementation
Vitaly Tuzov [Wed, 3 Jul 2019 12:15:28 +0000 (15:15 +0300)]
Fixed initUndistortRectifyMap AVX2 implementation

5 years agoMerge pull request #14860 from vonchenplus:ocv_maxpoolgrad
Alexander Alekhin [Thu, 4 Jul 2019 06:57:14 +0000 (09:57 +0300)]
Merge pull request #14860 from vonchenplus:ocv_maxpoolgrad

5 years agoMerge pull request #14959 from dvd42:onnx_clip
Diego [Thu, 4 Jul 2019 05:56:00 +0000 (07:56 +0200)]
Merge pull request #14959 from dvd42:onnx_clip

* onnx clip operation

5 years agoMerge pull request #14975 from alalek:clang_suppress_warnings
Alexander Alekhin [Wed, 3 Jul 2019 22:33:26 +0000 (22:33 +0000)]
Merge pull request #14975 from alalek:clang_suppress_warnings

5 years agovideoio: eliminate build warnings (clang)
Alexander Alekhin [Wed, 3 Jul 2019 21:55:30 +0000 (21:55 +0000)]
videoio: eliminate build warnings (clang)

5 years agoMerge pull request #14974 from alalek:ts_optional_files_runtime_check
Alexander Alekhin [Wed, 3 Jul 2019 19:14:43 +0000 (19:14 +0000)]
Merge pull request #14974 from alalek:ts_optional_files_runtime_check

5 years agoMerge pull request #14973 from alalek:itt_aarch64_support
Alexander Alekhin [Wed, 3 Jul 2019 19:13:57 +0000 (19:13 +0000)]
Merge pull request #14973 from alalek:itt_aarch64_support

5 years agots: runtime check for misused 'optional' test data files
Alexander Alekhin [Wed, 3 Jul 2019 16:01:03 +0000 (19:01 +0300)]
ts: runtime check for misused 'optional' test data files

5 years ago3rdparty(itt): support AARCH64
Alexander Alekhin [Wed, 3 Jul 2019 15:06:59 +0000 (18:06 +0300)]
3rdparty(itt): support AARCH64

5 years agotensroflow support maxpoolgrad
gal0is [Sat, 15 Jun 2019 15:51:13 +0000 (23:51 +0800)]
tensroflow support maxpoolgrad

5 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Tue, 2 Jul 2019 21:17:45 +0000 (21:17 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

5 years agoMerge pull request #14954 from rafagjordana:fix_blob_detection_insertion_sort
Alexander Alekhin [Tue, 2 Jul 2019 21:14:02 +0000 (21:14 +0000)]
Merge pull request #14954 from rafagjordana:fix_blob_detection_insertion_sort

5 years agoMerge pull request #14926 from alalek:tbb_version_2019u8
Alexander Alekhin [Tue, 2 Jul 2019 21:12:00 +0000 (21:12 +0000)]
Merge pull request #14926 from alalek:tbb_version_2019u8

5 years agoMerge pull request #14929 from alalek:cmake_rpath_link_support
Alexander Alekhin [Tue, 2 Jul 2019 20:31:33 +0000 (20:31 +0000)]
Merge pull request #14929 from alalek:cmake_rpath_link_support

5 years agoFix blob detector insertion sort
Rafa Gomez-Jordana [Mon, 1 Jul 2019 15:48:48 +0000 (17:48 +0200)]
Fix blob detector insertion sort

5 years agoMerge pull request #14964 from arnaudbrejeon:bug_fix_14955
Alexander Alekhin [Tue, 2 Jul 2019 19:50:47 +0000 (19:50 +0000)]
Merge pull request #14964 from arnaudbrejeon:bug_fix_14955

5 years agoMerge pull request #14963 from alalek:pr14925_fix
Alexander Alekhin [Tue, 2 Jul 2019 19:43:09 +0000 (19:43 +0000)]
Merge pull request #14963 from alalek:pr14925_fix

5 years agoFix crash, add assert and test
arnaudbrejeon [Tue, 2 Jul 2019 16:56:31 +0000 (09:56 -0700)]
Fix crash, add assert and test

5 years agoMerge pull request #14958 from tomoaki0705:fixArmFp16Behavior
Alexander Alekhin [Tue, 2 Jul 2019 16:40:21 +0000 (16:40 +0000)]
Merge pull request #14958 from tomoaki0705:fixArmFp16Behavior

5 years agoMerge pull request #14925 from StefanBruens:handle_absolute_include_path
Alexander Alekhin [Tue, 2 Jul 2019 16:05:53 +0000 (16:05 +0000)]
Merge pull request #14925 from StefanBruens:handle_absolute_include_path

5 years agoMerge pull request #14946 from andrey-golubev:obj_not_ref
Andrey Golubev [Tue, 2 Jul 2019 16:03:45 +0000 (19:03 +0300)]
Merge pull request #14946 from andrey-golubev:obj_not_ref

G-API: Use object instead of reference in extended lifetime case (#14946)

* Use object instead of reference

* Make the object const

5 years agore-enable CPU_BASELINE=FP16 on Armv7 platform
Tomoaki Teshima [Tue, 2 Jul 2019 12:57:15 +0000 (21:57 +0900)]
re-enable CPU_BASELINE=FP16 on Armv7 platform

5 years agoMerge pull request #14953 from alalek:core_static_analysis_eval_expr
Alexander Alekhin [Tue, 2 Jul 2019 09:44:29 +0000 (09:44 +0000)]
Merge pull request #14953 from alalek:core_static_analysis_eval_expr

5 years agoMerge pull request #14828 from armenpoghosov:parmen_RANSACPointSetRegistrator_getSubs...
armenpoghosov [Mon, 1 Jul 2019 18:57:28 +0000 (20:57 +0200)]
Merge pull request #14828 from armenpoghosov:parmen_RANSACPointSetRegistrator_getSubset_disaster_cleanup

Parmen ransac point set registrator get subset disaster cleanup (#14828)

5 years agoMerge pull request #14837 from Cartucho:fix_laplace_operator_on_python
Alexander Alekhin [Mon, 1 Jul 2019 17:00:24 +0000 (17:00 +0000)]
Merge pull request #14837 from Cartucho:fix_laplace_operator_on_python

5 years agoMerge pull request #14880 from dkurt:dnn_ie_tests
Alexander Alekhin [Mon, 1 Jul 2019 16:58:57 +0000 (16:58 +0000)]
Merge pull request #14880 from dkurt:dnn_ie_tests

5 years agoMerge pull request #14916 from terfendail:wsignmask_deprecated
Vitaly Tuzov [Mon, 1 Jul 2019 16:53:51 +0000 (19:53 +0300)]
Merge pull request #14916 from terfendail:wsignmask_deprecated

* Avoid using v_signmask universal intrinsic and mark it as deprecated

* Renamed v_find_negative to v_scan_forward

5 years agoMerge pull request #14951 from alalek:issue_14937
Alexander Alekhin [Mon, 1 Jul 2019 16:48:05 +0000 (16:48 +0000)]
Merge pull request #14951 from alalek:issue_14937

5 years agocore: evaluate CV_Error() parameters during static scans
Alexander Alekhin [Mon, 1 Jul 2019 15:17:03 +0000 (18:17 +0300)]
core: evaluate CV_Error() parameters during static scans

5 years agodnn: fix build with Vulkan
Alexander Alekhin [Mon, 1 Jul 2019 14:54:40 +0000 (17:54 +0300)]
dnn: fix build with Vulkan

5 years agoMerge pull request #14936 from StefanBruens:crosscorr_cleanup
StefanBruens [Sun, 30 Jun 2019 16:04:25 +0000 (18:04 +0200)]
Merge pull request #14936 from StefanBruens:crosscorr_cleanup

Crosscorr cleanup (#14936)

* Simplify code for convolution destination type/size

For the 2d filter code, destination size equals source size, and the
crossCorr function even (re-)creates the output matrix with the given size.

The number of channels also have to match. The destination type() is the
one used to create the output matrix, so we can use its type() here.

This is a preparatory patch.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
* Remove redundant destination size and type parameters from crossCorr

All calling sites of crossCorr already use (...,
mat, mat.size(), mat.type(), ...), so the parameters are redundant.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
5 years agoMerge pull request #14934 from StefanBruens:silence_assignment_operator_warning
Alexander Alekhin [Sun, 30 Jun 2019 07:47:07 +0000 (07:47 +0000)]
Merge pull request #14934 from StefanBruens:silence_assignment_operator_warning

5 years agoExplicitly default operator= for Vec<T, n>
Stefan Brüns [Sat, 29 Jun 2019 18:28:24 +0000 (20:28 +0200)]
Explicitly default operator= for Vec<T, n>

Due to the explicitly declared copy constructor Vec<T, n>::Vec(Vec <T,n>&)
GCC 9 warns if there is no assignment operator, as having one typically
requires the other (rule-of-three, constructor/desctructor/assginment).

As the values are just a plain array the default assignment operator does
the right thing. Tell the compiler explicitly to default it.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
5 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Sat, 29 Jun 2019 17:27:48 +0000 (17:27 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

5 years agoMerge pull request #14931 from dkurt:fix_dnn_js_sample_v4
Alexander Alekhin [Sat, 29 Jun 2019 17:26:31 +0000 (17:26 +0000)]
Merge pull request #14931 from dkurt:fix_dnn_js_sample_v4

5 years agoMerge pull request #14920 from StefanBruens:fix_arm_on_aarch64_detection
Alexander Alekhin [Sat, 29 Jun 2019 17:17:16 +0000 (17:17 +0000)]
Merge pull request #14920 from StefanBruens:fix_arm_on_aarch64_detection

5 years agoFix JS sample of dnn
Dmitry Kurtaev [Sat, 29 Jun 2019 16:21:14 +0000 (19:21 +0300)]
Fix JS sample of dnn

5 years ago3rdparty: TBB version 2018u1 => 2019u8
Alexander Alekhin [Fri, 28 Jun 2019 16:32:59 +0000 (19:32 +0300)]
3rdparty: TBB version 2018u1 => 2019u8

- make it configurable via OPENCV_TBB_RELEASE + OPENCV_TBB_RELEASE_MD5
- remove legacy support

5 years agocmake: support rpath-link linker option
Alexander Alekhin [Fri, 28 Jun 2019 22:39:38 +0000 (22:39 +0000)]
cmake: support rpath-link linker option

- builds with CMAKE_SKIP_RPATH=ON should properly find project .so files from <build>/lib directory
- $ORIGIN doesn't work properly in cross-compilation mode

5 years agocmake: normalize include directories in OpenCVConfig.cmake
Alexander Alekhin [Fri, 28 Jun 2019 20:33:17 +0000 (20:33 +0000)]
cmake: normalize include directories in OpenCVConfig.cmake

5 years agoMerge pull request #14885 from anton-potapov:common_flow_explanatory_test_cases
Alexander Alekhin [Fri, 28 Jun 2019 16:52:03 +0000 (16:52 +0000)]
Merge pull request #14885 from anton-potapov:common_flow_explanatory_test_cases

5 years agoMerge pull request #14923 from andrey-golubev:imgproc_tests_update_clean
Alexander Alekhin [Fri, 28 Jun 2019 16:01:32 +0000 (16:01 +0000)]
Merge pull request #14923 from andrey-golubev:imgproc_tests_update_clean

5 years agoMerge pull request #14922 from andrey-golubev:operators_tests_update_clean
Andrey Golubev [Fri, 28 Jun 2019 14:59:52 +0000 (17:59 +0300)]
Merge pull request #14922 from andrey-golubev:operators_tests_update_clean

G-API: Align operators tests to new test model (#14922)

* Align operators tests to new test model

* Change init function in NotOperatorTest

5 years agoAsync API for GAPI
Anton Potapov [Thu, 16 May 2019 17:40:00 +0000 (20:40 +0300)]
Async API for GAPI

- explanatory  test cases for common usage models

5 years agoMerge pull request #14892 from TolyaTalamanov:at/parameterized-render-tests
atalaman [Fri, 28 Jun 2019 14:11:03 +0000 (17:11 +0300)]
Merge pull request #14892 from TolyaTalamanov:at/parameterized-render-tests

G-API: Parameterized render tests (#14892)

* Init commit

* Add mat size as test parameter

* Add test for text render

* Add test for rect render

* Add tests for line and circle

* Remove old render tests

* Init output mats

* Remove methods input arguments

* Add comment about data loss in BGR2NV12 conversion

* Add edge test cases

* Replace default color for out mats black -> white

5 years agoHandle absolute OPENCV_INCLUDE_INSTALL_PATH correctly
Stefan Brüns [Fri, 28 Jun 2019 13:36:18 +0000 (15:36 +0200)]
Handle absolute OPENCV_INCLUDE_INSTALL_PATH correctly

In case OPENCV_INCLUDE_INSTALL_PATH is absolute (i.e. starts with a "/"),
the path ends up with a double "/".

While this is mostly equivalent to a single slash, it may have a nasty
side effect when:
- OpenCV_INSTALL_PATH is empty
- OPENCV_INCLUDE_INSTALL_PATH is "/usr/include"
- the calling build script uses "-isystem" to specify the path to the
  headers of dependencies (to avoid warnings)

Specifying "-isystem /usr/include" breaks the path ordering, and GCC can
no longer find its "stdlib.h", thus CMake filters such statements.
Unfortunately it fails to do so when using "//usr/include".

5 years agoEnable some tests for Inference Engine backend
Dmitry Kurtaev [Mon, 24 Jun 2019 18:55:32 +0000 (21:55 +0300)]
Enable some tests for Inference Engine backend

5 years agoFix detection of 32bit ARM builds on Aarch64
Stefan Brüns [Thu, 27 Jun 2019 22:17:26 +0000 (00:17 +0200)]
Fix detection of 32bit ARM builds on Aarch64

It is perfectly possible to compile ARM binaries on Aarch64. Generalize
the code to no only swap X86 with X86_64, but also ARM and AARCH64.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
5 years agoAlign imgproc tests to new model
Andrey Golubev [Wed, 26 Jun 2019 15:33:16 +0000 (18:33 +0300)]
Align imgproc tests to new model

5 years agoMerge pull request #14757 from andrey-golubev:core_tests_update
Andrey Golubev [Fri, 28 Jun 2019 10:07:41 +0000 (13:07 +0300)]
Merge pull request #14757 from andrey-golubev:core_tests_update

G-API: Introduce new approach to write accuracy tests (#14757)

* G-API: Introduce new common accuracy test fixture

* Enable Range<> to Seq<> implicit conversion

* Fix shadowing parameters

* Update license headers

* Rename ALIGNED_TYPE to SAME_TYPE

* Move MkRange to tests

* Fix TODO(agolubev) in test instantiations

* Squash simple fixture declarations in one line

* Remove unused line

* Fix Windows issues with macro expansion

* Choose between 1 or 2 matrix initialization

* Redesign common class behavior

Use "views" for GetParam() provided by GTest
base class instead of doing segregation
(with copy!) of common and specific parameters:
request common or specific parameter directly
by index from GetParam()-returned parameters

* Refine user-level API and usage of new test model

* Fix -fpermissive errors

* Remove unnecessary init calls

* Replace GCompileArgs member variable with func ptr

* Rename initMatsRandN to make its behavior explicit

Rename initMatsRandN to initMatrixRandN to eliminate confusion:
initMatsRandN only initialized first matrix (similarly to
initMatrixRandU)

* Fix common of initNothing

* Update copyright dates in missed files

* Add check for specific parameters

* Fix coment stlye

5 years agoMoved NVIDIA_Optical_Flow sample app to opencv_contrib
Vishal Chiluka [Wed, 15 May 2019 09:51:40 +0000 (15:21 +0530)]
Moved NVIDIA_Optical_Flow sample app to opencv_contrib

Description:
Moved NVIDIA_Optical_flow sample app and comparison app to
opencv_contrib branch. Added CUDA_CUDA_LIBRARY in CMakeLists.txt for
resolving linker errors.

5 years agoMerge pull request #14918 from alalek:dnn_ie_compilation
Alexander Alekhin [Thu, 27 Jun 2019 21:34:41 +0000 (21:34 +0000)]
Merge pull request #14918 from alalek:dnn_ie_compilation

5 years agodnn: adjust compilation options
Alexander Alekhin [Thu, 27 Jun 2019 14:04:10 +0000 (17:04 +0300)]
dnn: adjust compilation options

5 years agoMerge pull request #14914 from Nuzhny007:3.4
Alexander Alekhin [Thu, 27 Jun 2019 14:22:15 +0000 (14:22 +0000)]
Merge pull request #14914 from Nuzhny007:3.4

5 years agoMerge pull request #14905 from savuor:fix/inst_region_unique
Alexander Alekhin [Thu, 27 Jun 2019 10:16:59 +0000 (10:16 +0000)]
Merge pull request #14905 from savuor:fix/inst_region_unique

5 years agoMerge pull request #14881 from dkurt:dnn_ie_num_threads
Alexander Alekhin [Thu, 27 Jun 2019 10:14:24 +0000 (10:14 +0000)]
Merge pull request #14881 from dkurt:dnn_ie_num_threads

5 years agoFixed names conflict with dldt
Nuzhny007 [Thu, 27 Jun 2019 10:13:48 +0000 (13:13 +0300)]
Fixed names conflict with dldt

5 years agoLimit number of threads in CPU plugin of IE by OpenCV's getNumThreads
Dmitry Kurtaev [Mon, 24 Jun 2019 19:41:30 +0000 (22:41 +0300)]
Limit number of threads in CPU plugin of IE by OpenCV's getNumThreads

5 years agofixed multi instrumentations
Rostislav Vasilikhin [Wed, 26 Jun 2019 22:17:26 +0000 (01:17 +0300)]
fixed multi instrumentations

5 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Wed, 26 Jun 2019 20:17:19 +0000 (20:17 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4