Maksim Shabunin
c473718bc2
Check for empty Mat in compare, operator= and RNG::fill, fixed related tests
6 years ago
Maksim Shabunin
1da46fe6fb
Fixed issues found by static analysis (mostly DBZ)
6 years ago
Vadim Pisarevsky
f058b5fb1e
Wide univ intrinsics ( #11953 )
...
* core:OE-27 prepare universal intrinsics to expand (#11022 )
* core:OE-27 prepare universal intrinsics to expand (#11022 )
* core: Add universal intrinsics for AVX2
* updated implementation of wide univ. intrinsics; converted several OpenCV HAL functions: sqrt, invsqrt, magnitude, phase, exp to the wide universal intrinsics.
* converted log to universal intrinsics; cleaned up the code a bit; added v_lut_deinterleave intrinsics.
* core: Add universal intrinsics for AVX2
* fixed multiple compile errors
* fixed many more compile errors and hopefully some test failures
* fixed some more compile errors
* temporarily disabled IPP to debug exp & log; hopefully fixed Doxygen complains
* fixed some more compile errors
* fixed v_store(short*, v_float16&) signatures
* trying to fix the test failures on Linux
* fixed some issues found by alalek
* restored IPP optimization after the patch with AVX wide intrinsics has been properly tested
* restored IPP optimization after the patch with AVX wide intrinsics has been properly tested
6 years ago
Alexander Alekhin
d5951bc033
build: eliminate GCC8 warnings
6 years ago
Kuang Fangjun
2b6aa50b81
avoid negative index.
6 years ago
catree
4dc7e617a4
Add overloaded cv::PCACompute() that returns also the eigenvalues. Useful for Java and Python OpenCV where PCA is not available.
6 years ago
Alexander Alekhin
5385086fef
core: solve(): add check for passed 'method' values
6 years ago
berak
45677819e8
core: fix autobuffer usage in opengl.cpp
7 years ago
Alexander Alekhin
b09a4a98d4
opencv: Use cv::AutoBuffer<>::data()
7 years ago
Alexander Alekhin
135ea264ef
core: align cv::AutoBuffer API with std::vector/std::array
...
- added .data() methods
- added operator[] (int i)
- extend checks support to generic and debug-only cases
- deprecate existed operator* ()
7 years ago
yuki takehara
4fe648b15c
Merge pull request #11706 from take1014:setTo_Nan_10507
...
* setTo_#10507
* setTo_Nan_10507
* setTo: update check / test for NaNs
7 years ago
Sayed Adel
e0d28aa893
core:ppc Fix java CoreTest/testMahalanobis ( #11677 )
...
* core:ppc Fix java CoreTest/testMahalanobis
* core:ppc Fix warning unused variable on clang
7 years ago
Alexander Alekhin
4091ced5ab
core: set default logger level to 'warning' in Release builds
...
should hide unnecessary 'info' messages
7 years ago
Vadim Pisarevsky
7d19bd6c19
Merge pull request #11634 from vpisarev:empty_mat_with_types_2
...
fixes handling of empty matrices in some functions (#11634 )
* a part of PR #11416 by Yuki Takehara
* moved the empty mat check in Mat::copyTo()
* fixed some test failures
7 years ago
Alexander Alekhin
f42fca9f49
cuda: avoid unnecessary cudaStreamSynchronize() call
...
resolves #11511
7 years ago
Vadim Pisarevsky
e0dbe5cfcc
handle huge matrices correctly ( #11505 )
...
* make sure that the matrix with more than INT_MAX elements is marked as non-continuous, and thus all the pixel-wise functions process it correctly (i.e. row-by-row, not as a single row, where integer overflow may occur when computing the total number of elements)
7 years ago
cclauss
05c1a3d160
print() is a function in Python 3
7 years ago
yuki takehara
4934f7c5a4
Merge pull request #11285 from take1014:core_6125
...
* Resolves 6125
* Fix test code
* Delete unnecessary code
7 years ago
Alexander Alekhin
856a07711b
core: disabled IPP AVX512 normL1(a, b, mask)
...
for cv::Mat with type=16UC3 and width < 16
7 years ago
Alexander Alekhin
39e2d64b84
core: fix icc std::exception_ptr detection
...
std::exception_ptr requires enabled C++11 mode
7 years ago
Alexander Alekhin
f708a11f0f
build: fix warnings
7 years ago
Alexander Alekhin
57dad685d1
core: disabled IPP AVX2 normL1(a, b, mask)
...
for cv::Mat with width < 16
7 years ago
Alexander Alekhin
6b581c4e51
build: unreachable code after CV_Error() (part 2)
7 years ago
Alexander Alekhin
576d2dbac0
refactor: don't use CV_ErrorNoReturn() internally
7 years ago
Alexander Alekhin
4cbec82ac1
build: unreachable code after CV_Error()
7 years ago
Alexander Alekhin
10c9227136
core: CV_Error with set_terminate() on Windows
...
To dump contents of the last OpenCV error
7 years ago
Alexander Alekhin
65726e4244
core(hal): improve v_select() SSE4.1+
...
v_select 'mask' is restricted to these values only: 0 or ~0 (0xff/0xffff/etc)
mask in accuracy test is updated.
7 years ago
berak
d89fb163c6
core: add a check for empty input in inRange()
7 years ago
Simon Que
705464258e
Merge pull request #11353 from eecsninja:3.4
...
* Fix CV_Asserts with negation of strings
{!"string"} causes some compilers to throw a warning.
The value of the string is not that important -- it's only for printing
the assertion message.
Replace these calls with:
CV_Error(Error::StsError, "string")
to suppress the warning.
* remove unnecessary 'break' after CV_Error()
7 years ago
Alexander Alekhin
d76b41b50e
ocl: CL_MEM_USE_HOST_PTR workaround test
7 years ago
Alexander Alekhin
2f9cbc2e57
core: disable errors dump
...
Error messages are available via exceptions
7 years ago
Alexander Alekhin
12e8e33144
build: enable -Wimplicit-fallthrough warning for OpenCV modules
7 years ago
Alexander Alekhin
97882d03cc
core: fix FP16 conversion with CV_DISABLE_OPTIMIZATION option
...
Reproducer:
cmake -DCPU_BASELINE=AVX2 -DCV_DISABLE_OPTIMIZATION=ON ...
7 years ago
Alexander Alekhin
670ef403b0
ocl: improve trace messages of OpenCL calls
7 years ago
Alexander Alekhin
567ae61e78
core: add "check" macros
7 years ago
Alexander Alekhin
7dc162cb42
core: fix mm_pause() for non-SSE i386 builds
...
replaced to safe binary compatible 'rep; nop' asm instruction
7 years ago
Alexander Alekhin
854ab48de0
tbb: fix build warnings -Wshadow
7 years ago
Alexander Alekhin
8dacbe7584
android: std::exception_ptr is not available on some platforms (even with enabled C++11)
7 years ago
Maksim Shabunin
d2cff38db6
Added interface to check library version during runtime
7 years ago
Dmitry Kurtaev
73ca194313
Fix convertFp16 in JavaScript build
7 years ago
lopespt
c17ce1a0af
Solves issue #10506
7 years ago
Alexander Alekhin
7818071ba2
cuda: eliminate part of build warnings
7 years ago
Alexander Alekhin
82ba3ac894
cuda: refactor MemoryPool
...
- make non-copyable (aligns inner mutex semantic to std::mutex)
- getMemoryPool() returns reference instead of pointer (NULL is not expected here)
7 years ago
yuki takehara
d57e5c31c0
Merge pull request #11214 from take1014:core_9720
...
* fix #9720
* Add regression test
* Fix calculation method for scale
7 years ago
Alexander Alekhin
45a69ebec8
core: fix AVX2 min implementation
7 years ago
Vitaly Tuzov
ccd16f107d
Fixed IPP based implementation of setTo() for infinity value
7 years ago
Alexander Alekhin
6f69800d0c
core: propagate parallel_for() exceptions
7 years ago
ltqusst
0d646490f5
Fix #10557
...
Fix overflow bugs in conversion from NV12 VA-surface/D3D11texture2D to OpenCL UMat
7 years ago
Alexander Alekhin
9111538bfb
core: apply CV_OVERRIDE/CV_FINAL
7 years ago
LaurentBerger
03eb463f1c
Solves #11156 ( #11160 )
...
* Solves #11156
* Check file size for all file format. Disable APPEND if file is empty
* Add test for APPEND mode
7 years ago