MYLS
677d4d20ce
fixed an error in the test...
9 years ago
MYLS
959002fb96
solve warnings and errors in test.
9 years ago
MYLS
7c92ee2e6e
Split `cvWriteRawData_Base64` into three functions
...
The three new functions:
```cpp
void cvStartWriteRawData_Base64(::CvFileStorage * fs, const char* name,
int len, const char* dt);
void cvWriteRawData_Base64(::CvFileStorage *
fs, const void* _data, int len);
void
cvEndWriteRawData_Base64(::CvFileStorage * fs);
```
Test is also updated. (And it's remarkable that there is a bug in
`cvWriteReadData`.)
9 years ago
MYLS
29921d055d
change the parameter to `CvMat` and `CvMatND`
...
```cpp
cvWriteMat_Base64(::cv::FileStorage & fs, ::cv::String const & name,
::cv::Mat const & mat)
```
becomes:
```cpp
CV_EXPORTS void cvWriteMat_Base64(::CvFileStorage* fs, const char* name,
const ::CvMat* mat);
CV_EXPORTS void
cvWriteMatND_Base64(::CvFileStorage* fs, const char* name, const
::CvMatND* mat);
```
9 years ago
MYLS
958263d245
Solve warnings, and adjusted the test case.
9 years ago
MYLS
882e4221e7
fix errors from test.
...
Two other test are still needed.
1. Verify the Base64 data.
2. Read an old YML file for compatibility test.
9 years ago
MYLS
7b1f7c8d8e
Add Base64 support for FileStorage
...
1. Add Base64 support for reading and writing XML\YML file.
The two new functions for writing:
```cpp
void cvWriteRawData_Base64(cv::FileStorage & fs, const void* _data, int
len, const char* dt);
void cvWriteMat_Base64(cv::FileStorage & fs, cv::String const & name,
cv::Mat const & mat);
```
2. Change YML file header form `YAML:1.0` to `YAML 1.0`. (standard
format)
3. Add test for Base64 part.
9 years ago
MYLS
ecd827fc8e
Add Base64 support for FileStorage
...
[GSoC] FileStorage:
Add base64 support for reading and writting XML\YML file.
The two new functions:
```
void cvWriteRawData_Base64(cv::FileStorage & fs, const void* _data, int
len, const char* dt);
void cvWriteMat_Base64(cv::FileStorage & fs, cv::String const & name,
cv::Mat const & mat);
```
9 years ago
Tomoaki Teshima
d1c1c01761
fix typo
9 years ago
Tomoaki Teshima
eccf2fa4c3
follow other interface
...
* remove useHW option
* update test
9 years ago
Maksim Shabunin
1e667de1f3
HAL math interfaces: fastAtan2, magnitude, sqrt, invSqrt, log, exp
9 years ago
Tomoaki Teshima
b2ad7cd9c0
add feature to convert FP32(float) to FP16(half)
...
* check compiler support
* check HW support before executing
* add test doing round trip conversion from / to FP32
* treat array correctly if size is not multiple of 4
* add declaration to prevent warning
* make it possible to enable fp16 on 32bit ARM
* let the conversion possible on non-supported HW, too.
* add test using both HW and SW implementation
9 years ago
Tomoaki Teshima
bfcb40ad77
fix Core_MulSpectrum test on 64bit ARM + release mode
...
* fix issue #6536
* increase threshold in particular tests due to the difference of fmsub and fsub
9 years ago
Tomoaki Teshima
7077d1de63
fix hal_intrin test on 64bit ARM
...
* fix issue 6521
* use correct comparison
9 years ago
Philipp Hasper
b6d8c9d990
operator<< handles keys starting with underscore
9 years ago
Philipp Hasper
47c4ee974a
operator<< handles keys starting with underscore
9 years ago
Maksim Shabunin
008abd28fd
Extracted HAL interfaces for DFT/DCT, added new test
9 years ago
Alexander Alekhin
f48cda2f95
test: initialize test data in test_umat.cpp (6102)
9 years ago
Alexander Alekhin
96f5a930f4
test: regression 5991
9 years ago
Alexander Alekhin
17e4d33b0e
added regression test for #5876
9 years ago
Maksim Shabunin
84f37d352f
HAL moved back to core
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
Maksim Shabunin
31e0d90da6
Enable temp objects destruction test for VS versions less than 2015
9 years ago
Maksim Shabunin
6e9d0d9a0c
Visual Studio 2015 warning and test fixes
9 years ago
Pavel Rojtberg
46ada3886f
fix wrong parsing of values containing '='
...
fixes #5074
9 years ago
Pavel Rojtberg
1dd7f546af
CommandLineParser: add special <none> value to disallow empty strings
...
some mandatory string keys like paths must not be empty. Add the special
default value `<none>` so the CommandLineParser can enforce this and
generate an according error message for us.
9 years ago
Pavel Rojtberg
a388806555
enable additional CommandLineParser tests
9 years ago
Pavel Rojtberg
2ced3ba276
CommandLineParser: throw on programmer error
...
requesting a previously undeclared key is most likely an programming
error. e.g. a typo "--unused vs --unsued".
So throw in those cases.
Add an according failure testcase.
9 years ago
Gleb Gladilov
2bc4486966
Added test of minMaxLoc on filling with maximums of int
9 years ago
Alexander Alekhin
d3071db0d7
add some CommandLineParser tests
9 years ago
Ilya Lavrenov
ecc53dd7a4
fixed memory leak in core ds tests
...
(cherry picked from commit 7719da9552
)
9 years ago
Alexander Alekhin
bf42b9603b
fix "unreachable code" warning
9 years ago
Alexander Alekhin
7213e5f68a
ocl: correct disabling of OpenCL code
9 years ago
Ilya Lavrenov
0303e8067e
fixed memory leak in core ds tests
9 years ago
Alexander Alekhin
ad70ab404c
ocl: workaround for getUMat()
9 years ago
Andrey Pavlenko
cea2dafa0f
man/unmap, preventing getMat/getUMat from temp object, fix thread-unsafe code in `UMat::getMat()`
9 years ago
Alexander Alekhin
8694ba0978
update custom_ptr test
9 years ago
Andrey Pavlenko
4aefb9f2fc
making the test deepper
9 years ago
Andrey Pavlenko
3656a1aa66
fixing 'map_unmap_counting'
9 years ago
Philippe FOUBERT
b668d3f693
Modification of the related tests in core/tests/ocl
9 years ago
Vitaliy Lyudvichenko
85cc11e3b2
Changed behaviour of Mat/UMat::reshape() to accept n-dim shapes
9 years ago
Ilya Lavrenov
7719da9552
fixed memory leak in core ds tests
9 years ago
Vladimir Dudnik
131d7c394e
enabled test UMat copyTo. Now it will detect FAIL on Intel platform for ROI (issue with clEnqueueCopyBufferRect)
9 years ago