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
Maksim Shabunin
b417b4dbee
KMeans improvement
...
- fixed returned compactness value
- added centers drawing to the example app
- added compactness test
8 years ago
Vladislav Sovrasov
dfe4519c07
Add QR decomposition to HAL
8 years ago
LaurentBerger
b75bac7975
Solve Issue 7063
...
consequences of changes
accuracy test
Solve issue 7063
8 years ago
Alexander Alekhin
3844ee780c
build: fix compiler warnings (GCC 5.3.1)
9 years ago
Maksim Shabunin
1e667de1f3
HAL math interfaces: fastAtan2, magnitude, sqrt, invSqrt, log, exp
9 years ago
Alexander Alekhin
b26580cc7b
checkRange fixes
...
1) fix multichannel support
2) remove useless bad_value, read value from original Mat directly
3) add more tests
4) fix docs for cvCeil and checkRange
9 years ago
hoangviet1985
3e96b724c2
squash
9 years ago
hoangviet1985
b96def885f
squash
9 years ago
Vladislav Vinogradov
d5e6503fe5
fix signed/unsigned comparison warning in core/test/test_math.cpp
9 years ago
Viet Dinh
68bcff26fb
fix solveCubic
...
The original solution did not handle correctly when delta = 0,
resulting as nan errors. I also wrote a test case to test solving
equation x^3 = 0 after fixing.
9 years ago
Viet Dinh
cfd5caf29d
deal with type casting issues
9 years ago
Viet Dinh
09b0193186
even more correct
...
calculates cube root of complex number to give more correct results.
9 years ago
Viet Dinh
537a978dcf
update test_math.cpp
9 years ago
Vadim Pisarevsky
73f760fdf0
some more compile warnings fixed
10 years ago
Vadim Pisarevsky
9fbd1d68ad
refactored div & pow funcs; added tests for special cases in pow() function.
...
fixed http://code.opencv.org/issues/3935
possibly fixed http://code.opencv.org/issues/3594
10 years ago
Adil Ibragimov
8a4a1bb018
Several type of formal refactoring:
...
1. someMatrix.data -> someMatrix.prt()
2. someMatrix.data + someMatrix.step * lineIndex -> someMatrix.ptr( lineIndex )
3. (SomeType*) someMatrix.data -> someMatrix.ptr<SomeType>()
4. someMatrix.data -> !someMatrix.empty() ( or !someMatrix.data -> someMatrix.empty() ) in logical expressions
10 years ago
Roman Donchenko
7ea1bf3cf0
Fixed several problems found by PVS-Studio.
...
This fixes all problems from the article "Checking OpenCV with PVS-Studio"
<http://www.viva64.com/en/b/0191/ > that are not already fixed and are
not in 3rdparty or the legacy module.
The problems fixed are two instances of useless code and one instance
of unspecified behavior (right-shifting a negative number).
11 years ago
Vladislav Vinogradov
746185652a
add additional tests for different input cases
11 years ago
Ilya Lavrenov
aa5326c231
cv::norm -> cvtest::norm in tests
...
Conflicts:
modules/core/src/stat.cpp
11 years ago
Ilya Lavrenov
32eb38ec98
fixed defects from coverity.com
11 years ago
Ilya Lavrenov
f6367a2ea5
eliminated possible memory leak
...
(cherry picked from commit e7e63fac6c
)
11 years ago
Ilya Lavrenov
e7e63fac6c
eliminated possible memory leak
11 years ago
Roman Donchenko
e9a28f66ee
Normalized file endings.
11 years ago
Roman Donchenko
f55740da70
Deleted all trailing whitespace.
11 years ago
Andrey Kamaev
715fa3303e
Move cv::Mat out of core.hpp
12 years ago
Andrey Kamaev
5e7ab8baf3
Move cv::Scalar_ to types.hpp
12 years ago
Vadim Pisarevsky
9a86245242
added test for bug #1448 and hopefully fixes the bug #2898
12 years ago
Artanis
993522598b
Add implementations for Mat::zeros() and Mat::ones()
...
In class Mat, "static MatExpr Mat::zeros(int ndims, const int* sz, int
type)" and "static MatExpr Mat::ones(int ndims, const int* sz, int
type)" are declared but never implemented. That means we can see their
manuals from
"http://docs.opencv.org/modules/core/doc/basic_structures.html " but we
can't use them. Here I tried to finish their implementation.
I have also changed MatOp_Initializer::assign to make it support
multi-dimension Mat.
Test cases are added in test_math.cpp as well.
12 years ago
Andrey Kamaev
20c5a8788d
Weaken acceptance criteria in phase test
12 years ago
Andrey Kamaev
0a4ed2bc01
Fix Windows build warnings
12 years ago
Vadim Pisarevsky
9163471987
improved accuracy of 3x3 invert on poorly-conditioned matrices (bug #2525 )
12 years ago
Maria Dimashova
78dd1893bb
added tests for cv::merge, cv::split, cv::phase
12 years ago
OpenCV Buildbot
81f826db2b
Normalize line endings and whitespace
12 years ago
OpenCV Buildbot
04384a71e4
Normalize line endings and whitespace
12 years ago
Vadim Pisarevsky
d5a0088bbe
merged 2.4 into trunk
13 years ago
Vadim Pisarevsky
53104e6f43
decreased the number of tests in Core_Eigen, decreased the maximum matrix size in Core_SVD; now those tests take less time to complete
13 years ago
Vadim Pisarevsky
2fd1e2ea57
merged all the latest changes from 2.4 to trunk
13 years ago
Andrey Kamaev
97835a8f32
Fixed 9 more build warnings
13 years ago
Marina Kolpakova
c0f6e219bb
calcCovarMatrix cupport fot std::vectors of cv::Mat ( #494 )
13 years ago
Andrey Pavlenko
7e06b18144
workaround for the 'Bug #1784 (cvFloor/cvCeil)'; typos fixed; two more tests for checkRange
13 years ago
Andrey Pavlenko
dccfd79da8
#1783 : test and fix for the bug
13 years ago
Vadim Pisarevsky
61c7c441b9
handle single-point sets in kmeans properly
13 years ago
Vadim Pisarevsky
c6a27b3d2f
probably, ultimately fixed the problem of empty clusters in kmeans; added test for singular kmeans cases
13 years ago
Marina Kolpakova
13c7222238
minor refactoring
13 years ago
Marina Kolpakova
32b9bc1d00
fixed bug for #1496 and correctness tests for function CheckRange
13 years ago
Vadim Pisarevsky
846e37ded5
fixed many warnings from GCC 4.6.1
13 years ago
Vadim Pisarevsky
72c23e7bbb
fixed most of test_core failures (except for SVD)
13 years ago
Vadim Pisarevsky
ff5e97c8e4
added COVAR_ and SORT_ enums to core.hpp; fixed many, many VS2005, VS2010 and MinGW (GCC 4.5.2) warnings
14 years ago