Christof Kaufmann
7ec59fc097
Revert changes of mean and meanStdDev
7 years ago
Vladislav Sovrasov
32bf712102
cmake: disable implicit-fallthrough by default
7 years ago
Maksim Shabunin
c92c99ed0b
Enabled forEach for const Mats
7 years ago
Dmitry Kurtaev
8b094755fa
Fix https://github.com/opencv/opencv/issues/8693
7 years ago
Christof Kaufmann
46a668c565
Add multi-channel mask support to mean, meanStdDev and setTo
...
This adds the possibility to use multi-channel masks for the functions
cv::mean, cv::meanStdDev and the method Mat::setTo. The tests have now a
probability to use multi-channel masks for operations that support them.
This also includes Mat::copyTo, which supported multi-channel masks
before, but there was no test confirming this.
7 years ago
Alexander Alekhin
f7a273cfb3
core(test): regression test for 9507
7 years ago
Alexander Alekhin
0451629e22
core(persistence): resolve DMatch/KeyPoint problem
7 years ago
Alexander Alekhin
72f789bf34
core: fix type traits
7 years ago
Alexander Alekhin
b18983a005
test(hal): properly dispatch FP16 test
7 years ago
KUANG Fangjun
97ec91ad67
fix cv::CommandLineParser.
...
It should handle bool value not only of "true" but also of "TRUE" and "True".
7 years ago
Boris Fomitchev
76f7fb5231
Extending CPU dispatch to the tests; fixing a typo
7 years ago
Rostislav Vasilikhin
66b0651607
Merge pull request #9329 from savuor:softfloat_sincos
...
SoftFloat: added sin, cos and docs (#9329 )
* softfloat: comparison operators made inline, min() max() eps() isSubnormal() added
* softfloat: get/set sign/exp
* softfloat: get/set frac
* softfloat: tests rewritten with new tools
* softfloat: added pi(), sin(), cos()
* softfloat: more comments
* softfloat: updated sincos arg reduction
* softfloat: initial tests for sincos added
* softfloat: test works, code cleanup is pending
* softfloat: sincos argreduce rewritten
* softfloat: sincos refactored and simplified
* softfloat sincos: epsilons calibrated
* softfloat: junk code removed from tests
* softfloat: docs added
* inline comparisons undone; warning fixed
7 years ago
Vladislav Sovrasov
5e68b28ad3
core: fix file not closed when exception in FS
7 years ago
Vladislav Sovrasov
aa54acd54d
core: add a test to reproduce #9312
7 years ago
dkurt
583b327523
Fix JSON booleans without quotes
7 years ago
dkurt
3515f6ec33
Missed NAMED bit of JSON nodes tag
7 years ago
Alexander Alekhin
d9e092325b
test: regression test for IPP minMaxIdx problem
7 years ago
Alexander Alekhin
5bc291937f
test: FileStorage format regression test
8 years ago
Tomoaki Teshima
e63d628677
remove some rand functions
...
* make test more reproducible
8 years ago
Vladislav Sovrasov
e5fbb4f5d2
Merge pull request #9034 from sovrasov:mats_from_initializer_list
...
Add constructors taking initializer_list for some of OpenCV data types (#9034 )
* Add a constructor taking initializer_list for Matx
* Add a constructor taking initializer list for Mat and Mat_
* Add one more method to initialize Mat to the corresponding tutorial
* Add a note how to initialize Matx
* CV_CXX_11->CV_CXX11
8 years ago
Alexander Alekhin
d6c5e18e24
core(test): fix input data for OCL FP16 test
8 years ago
Alexander Alekhin
a4a47b538c
build: detect Android via '__ANDROID__' macro
...
https://sourceforge.net/p/predef/wiki/OperatingSystems
8 years ago
Vladislav Sovrasov
f42b7d03b4
core: add a test of iteration through the Mat_ with range-based for
8 years ago
Vladislav Sovrasov
35a1ecef2a
core: fix infinite recursion in compare
8 years ago
Vladislav Sovrasov
4f9871817a
core: forbid handling of the case when src=dst in cv::repeat
8 years ago
Alexander Alekhin
9067310166
core(test): added cv::sortIdx accuracy tests
8 years ago
Alexander Alekhin
e23b59da5c
build: fix v_reduce_sum4 (requires SSE3)
8 years ago
Alexander Alekhin
781515c514
build: fix "ambiguous call" (MSVS2010)
8 years ago
Alexander Alekhin
71517a910a
build: fix errors for MSVS2010-2013, reduce default softfloat scope
8 years ago
Rostislav Vasilikhin
c6a3a18894
SoftFloat integrated ( #8668 )
...
* everything is put into softfloat.cpp and softfloat.hpp
* WIP: try to integrate softfloat into OpenCV
* extra functions removed
* softfloat made stateless
* CV_EXPORTS added
* operators fixed
* exp added, log: WIP
* log32 fixed
* shorter names; a lot of TODOs
* log64 rewritten
* cbrt32 added
* minors, refactoring
* "inline" -> "CV_INLINE"
* cast to bool warnings fixed
* several warnings fixed
* fixed warning about unsigned unary minus
* fixed warnings on type cast
* inline -> CV_INLINE
* special cases processing added (NaNs, Infs, etc.)
* constants for NaN and Inf added
* more macros and helper functions added
* added (or fixed) tests for pow32, pow64, cbrt32
* exp-like functions fixed
* minor changes
* fixed random number generation for tests
* tests for exp32 and exp64: values are compared to SoftFloat-based naive implementation
* minor warning fix
* pow(f, i) 32/64: special cases handling added
* unused functions removed
* refactoring is in progress (not compiling)
* CV_inline added
* unions {uint_t, float_t} removed
* tests compilation fixed
* static const members -> static methods returning const
* reinterpret_cast
* warning fixed
* const-ness fixed
* all FP calculations (even compile-time) are done in SoftFloat + minor fixes
* pow(f, i) removed from interface (can cause incorrect cast) to internals of pow(f, f), tests fixed
* CV_INLINE -> inline
* internal constants moved to .cpp file
* toInt_minMag() methods merged into toInt() methods
* macros moved to .cpp file
* refactoring: types renamed to softfloat and softdouble; explicit constructors, etc.
* toFloat(), toDouble() -> operator float(), operator double()
* removed f32/f64 prefixes from functions names
* toType() methods removed, round() and trunc() functions added
* minor change
* minors
* MSVC: warnings fixed
* added int cvRound(), cvFloor, cvCeil, cvTrunc, saturate_cast<T>()
* typo fixed
* type cast fixed
8 years ago
Vadim Pisarevsky
4eda8efd42
resolves https://github.com/opencv/opencv/issues/7792
8 years ago
Tomoaki Teshima
d81cdb8e1c
add OpenCL version of convertFp16 and test
...
* disable vector operation for now
* brush up the implementation based on comment
8 years ago
Maksim Shabunin
f23b6ba652
Fixed multidimensional count non-zero IPP implementation
8 years ago
Vladislav Sovrasov
2c2b1405a3
Add test for Mat_::release()
8 years ago
Alexander Alekhin
75f28245a8
core: fix persistence bug in RAW I/O code
...
- persistence.cpp code expects special sizeof value for passed structures
- this assumption is lead to memory corruption problems
- fixed/workarounded test to prevent memory corruption on Linux 32-bit systems
8 years ago
Tomoaki Teshima
0f5aaade61
fix test error on VS2012
8 years ago
Arnaud Brejeon
636ab095b0
Merge pull request #8535 from arnaudbrejeon:std_array
...
Add support for std::array<T, N> (#8535 )
* Add support for std::array<T, N>
* Add std::array<Mat, N> support
* Remove UMat constructor with std::array parameter
8 years ago
Alexander Alekhin
dd304dbe05
test: fix min/max name mismatching
8 years ago
Alexander Alekhin
e5d9b608c4
cmake: fix fp16 support
8 years ago
Julian Exner
46af07575e
Add test case for cv::Mat::forEach
...
This test case uses a matrix with more dimensions than columns. Without
the fix in
b45e784beb
this crashes with a segmentation fault, hangs or simply fails with wrong
values.
8 years ago
Vladislav Sovrasov
931b32d102
core: add single DMatch/Keypoint I/O
8 years ago
Alexander Alekhin
89ce2dc405
core: DMatch I/O tests
8 years ago
Vladislav Sovrasov
c321d025c4
Fix DMatch and Keypoint I/O in FileStorage
8 years ago
Alexander Alekhin
ebdd74105a
core(test): add regression test for RNG in parallel_for_()
8 years ago
Vladislav Sovrasov
14451f3f06
core: fix adjustROI behavior on indexes overflow
8 years ago
Alexander Alekhin
9ac9e9e29a
core: fix String::end() implementation
8 years ago
Maksim Shabunin
b417b4dbee
KMeans improvement
...
- fixed returned compactness value
- added centers drawing to the example app
- added compactness test
8 years ago
Vladislav Sovrasov
896c34fab3
Add support of type headings from YAML1.2
8 years ago
Tomoaki Teshima
8b22099da2
use universal intrinsic and SSE4 popcount instruction in normHamming
...
- add v_popcount in universal intrinsic
- add test for v_popcount
- add wrapper of popcount for both MSVC and GCC
8 years ago
Alexander Alekhin
0e4dde1781
Merge pull request #7872 from alalek:merge-2.4
8 years ago