Alexander Alekhin
db4b1e613c
core(persistence): fix types format handling
...
partial backport of 4eac198270
2021-06-29 21:54:52 +00:00
Vincent Rabaud
c8268e65fd
Fix potential NaN in cv::norm.
...
There can be an int overflow.
cv::norm( InputArray _src, int normType, InputArray _mask ) is fine,
not cv::norm( InputArray _src1, InputArray _src2, int normType, InputArray _mask ).
2021-06-15 14:58:11 +02:00
Alexander Alekhin
450dc92452
Merge pull request #20172 from alalek:fixup_19334
2021-05-28 14:09:52 +00:00
Alexander Alekhin
3d394943e6
core(ocl): avoid limit of Image kernel args
2021-05-28 00:43:59 +00:00
Alexander Alekhin
d2a9ca13f1
core(tls): handle process termination / cleanup issues
2021-04-29 23:25:44 +00:00
Alexander Alekhin
222af8e7e4
core: avoid process cleanup deadlock if TlsStorage is not used
2021-04-09 16:08:08 +00:00
Alexander Alekhin
908957317f
Merge pull request #19813 from alalek:issue_19506
2021-03-31 22:57:50 +00:00
Alexander Alekhin
f82303d614
Merge pull request #19811 from alalek:issue_19599
2021-03-31 22:56:48 +00:00
Alexander Alekhin
8069a6b4f8
core(IPP): disable some ippsMagnitude_32f calls
2021-03-31 13:38:57 +00:00
Alexander Alekhin
a2a92999be
core(arithm_op): workaround problem with scalars handling
2021-03-31 10:35:52 +00:00
Vitaly Tuzov
aab62aa6dd
Merge pull request #18952 from terfendail:wui_doc
...
* Updated UI documentation to address WUI
* Added documentation for vx_ calls
* Removed vx_store operation overload
* Doxyfile updated to enable wide UI
* Enable doxygen documentation for vx_ WUI functions
* Wide intrinsics definition rework
* core: fix SIMD C++ emulator build (supports 128-bit only)
2021-03-30 16:18:03 +00:00
Mikhail Nikolskii
bf9f67e93f
Merge pull request #19783 from mikhail-nikolskiy:interop-perf
...
Performance optimization in DirectX and VAAPI interop
* optimization in OpenCL NV12<>BGR kernels
* reduce kernel work-size
2021-03-25 21:27:31 +00:00
Alexander Alekhin
7ca9740da5
Merge pull request #19718 from alalek:backport_19683
2021-03-13 12:46:24 +00:00
Dale Phurrough
cbe236652b
noexcept def construct Mat, UMat, Mat_, MatSize, MatStep
...
original commit: 1b0f781b7c
2021-03-12 20:26:32 +00:00
Dan Ben Yosef
d4d805cb3e
Avoiding copy by passing param by reference
...
It is best to pass bad_value_ param by reference to avoid copy.
2021-03-12 14:17:11 -05:00
Sayed Adel
f8181fbef8
core:ppc64 fix detecting CPU features when optimization is off
2021-03-12 02:02:31 +00:00
Alexander Alekhin
cbfd38bd41
core: rework code locality
...
- to reduce binaries size of FFmpeg Windows wrapper
- MinGW linker doesn't support -ffunction-sections (used for FFmpeg Windows wrapper)
- move code to improve locality with its used dependencies
- move UMat::dot() to matmul.dispatch.cpp (Mat::dot() is already there)
- move UMat::inv() to lapack.cpp
- move UMat::mul() to arithm.cpp
- move UMat:eye() to matrix_operations.cpp (near setIdentity() implementation)
- move normalize(): convert_scale.cpp => norm.cpp
- move convertAndUnrollScalar(): arithm.cpp => copy.cpp
- move scalarToRawData(): array.cpp => copy.cpp
- move transpose(): matrix_operations.cpp => matrix_transform.cpp
- move flip(), rotate(): copy.cpp => matrix_transform.cpp (rotate90 uses flip and transpose)
- add 'OPENCV_CORE_EXCLUDE_C_API' CMake variable to exclude compilation of C-API functions from the core module
- matrix_wrap.cpp: add compile-time checks for CUDA/OpenGL calls
- the steps above allow to reduce FFmpeg wrapper size for ~1.5Mb (initial size of OpenCV part is about 3Mb)
backport is done to improve merge experience (less conflicts)
backport of commit: 65eb946756
2021-03-02 23:24:28 +00:00
Federico Martinez
773262bc09
Fix UB in CopyMakeConstBoder_8u
...
Caused by overflow of arithmetic operators conversion rank
2021-02-26 19:15:50 +00:00
Alexander Alekhin
7ffc4b57aa
Merge pull request #19535 from alalek:issue_18897
2021-02-23 22:42:51 +00:00
Alexander Alekhin
309e1e2b1d
core(InputArray): replace STD_ARRAY to MATX
...
- remove duplication kind
2021-02-21 19:12:21 +00:00
Dale Phurrough
4badf640bf
add noexcept to default constructors of cv::ocl
...
- follows iso c++ guideline C.44
- enables default compiler-created constructors to
also be noexcept
original commit: 77e26a7db3
- handled KernelArg, Image2D
2021-02-20 16:20:25 +00:00
Alexander Alekhin
6d3502833f
core: include version.hpp in cvdef.h, fix precomp.hpp usage
2021-02-16 11:10:45 +00:00
Zhuo Zhang
743099f9f9
Merge pull request #19521 from zchrissirhcz:3.4-fix-core-module-android-arm64-build
...
* fix core module android arm64 build
* fix core module android build when neon is off
When building for Android ARM platform, cmake with
`-D CV_DISABLE_OPTIMIZATION=ON`, the expected behavior is
not using ARM NEON, using naive computation instead.
This commit fix the un-expected compile error for neon intrinsincs.
2021-02-14 21:37:11 +03:00
Vincent Rabaud
847b16fb76
Disable thread sanitization when CV_USE_GLOBAL_WORKERS_COND_VAR is not set.
...
This fixes #19463
2021-02-09 14:12:39 +01:00
Alexander Alekhin
857f339914
Merge pull request #19385 from alalek:ocl_isOpenCLActivated_update
2021-01-25 13:54:00 +00:00
Alexander Alekhin
37e656082b
core(ocl): update isOpenCLActivated()
...
- reuse g_isOpenCLAvailable variable instead
2021-01-24 01:25:17 +00:00
Alexander Alekhin
212815a10d
core(ocl): fix lifetime handling of Image kernel args
2021-01-18 06:24:36 +00:00
Francesco Petrogalli
c526705f4f
[cv::transform] Enable CV_SIMD for the 16U case on AArch64.
2020-12-20 15:58:21 +00:00
Alexander Alekhin
d159417474
Merge pull request #19101 from alalek:issue_5209
2020-12-16 22:13:18 +00:00
Alexander Alekhin
7631056b8a
Merge pull request #19114 from alalek:issue_18937
2020-12-15 20:47:05 +00:00
Alexander Alekhin
c240355cc6
dnn(ocl): avoid mess FP16/FP32 in convolution layer
2020-12-15 08:51:24 +00:00
Alexander Alekhin
4b3d2c8834
dnn(ocl): fix gemm kernels with beta=0
...
- dst is not initialized, may include NaN values
- 0*NaN produces NaN
2020-12-15 00:58:43 +00:00
Alexander Alekhin
392991fa0b
core(opencl): add version check before clCreateFromGLTexture() call
2020-12-13 20:57:26 +00:00
Alexander Alekhin
e958600f32
Merge pull request #18986 from alalek:fix_ipp_17453_2
2020-12-02 19:09:24 +00:00
Alexander Alekhin
484251c52b
Merge pull request #18831 from rjiejie:master-opt@pipeline
2020-12-02 19:07:38 +00:00
Alexander Alekhin
d35e2f5339
core(ipp): workaround getIppTopFeatures() value mismatch
2020-12-02 11:33:55 +00:00
Alexander Alekhin
91ce6ef190
core(ipp): disable SSE4.2 code path in countNonZero()
2020-12-01 14:01:42 +00:00
Alexander Alekhin
8c5b3c4150
Merge pull request #17077 from i386x:check-negative-values
2020-11-26 15:07:58 +00:00
Or Avital
5a3a915a9b
Remove unnecessary condition (will never reach)
2020-11-22 14:19:20 +02:00
Jiri Kucera
ce31c9c448
core(matrix): Negative values checks
...
Add checks that prevents indexing an array by negative values.
2020-11-20 22:51:06 +01:00
Jojo R
12b8d542b7
norm.cpp(normL2Sqr_): improve performance of pipeline
...
The most of target machine use one type cpu unit resource
to execute some one type of instruction, e.g.
all vx_load API use load/store cpu unit,
and v_muladd API use mul/mula cpu unit, we interleave
vx_load and v_muladd to improve performance on most targets like
RISCV or ARM.
2020-11-19 09:49:49 +08:00
Alexander Alekhin
2b558a3787
core: fix F16C compilation check
2020-11-17 12:22:49 +00:00
Alexander Alekhin
716450ceb5
Merge pull request #18158 from legrosbuffle:3.4-vectorize-dft-radix
2020-10-30 22:05:50 +00:00
Alexander Alekhin
aac7c5465b
core: move inline code from mat.inl.hpp
2020-10-21 23:06:09 +00:00
Alexander Alekhin
aece3e732e
Merge pull request #18507 from sizeofvoid:openbsd
2020-10-05 17:02:38 +00:00
Mario Emmenlauer
102d8f67cd
matrix.cpp::setSize(): fixed out-of-bounds access on cv::Mat steps
2020-10-05 10:19:53 +02:00
Rafael Sadowski
3acf8cfd63
Add an OpenBSD check
2020-10-05 08:23:23 +02:00
Alexander Alekhin
5e90802b1a
Merge pull request #18363 from alalek:issue_18349
2020-09-19 16:53:34 +00:00
Alexander Alekhin
261ad78122
core: emit more clear messages in OutputArray::create()
2020-09-18 15:25:29 +00:00
Alexander Alekhin
4fa82809df
ocl: avoid rescheduling of async kernels
2020-09-18 14:53:50 +00:00