Ilya Lavrenov
313f54bc39
read/write vec2i from/to filestorage
9 years ago
Ilya Lavrenov
87ae4e0564
fixed clone of empty matrix
9 years ago
Philipp Hasper
00112bbe10
persistence: fixing crash with space-only values
9 years ago
MYLS
df5a7c8ee9
build again for OpenCL.
...
I could not find the cause of the error:
```
C:\builds_ocv\precommit_opencl\opencv\modules\ts\src\ts_perf.cpp(361):
error: The difference between expect_max and actual_max is
8445966.0000002384, which exceeds eps, where
expect_max evaluates to 0.9999997615814209,
actual_max evaluates to 8445967, and
eps evaluates to 1.0000000000000001e-005.
Argument "dst0" has unexpected maximal value
```
Hope this is a false alarm.
9 years ago
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
Philipp Hasper
b6d8c9d990
operator<< handles keys starting with underscore
9 years ago
Philipp Hasper
47c4ee974a
operator<< handles keys starting with underscore
9 years ago
Mansour Moufid
b99f7a29df
Cast some image coordinates and sizes to double.
...
Conflicts:
modules/gpu/perf/perf_imgproc.cpp
Cast a long integer to double explicitly.
Conflicts:
modules/python/src2/cv2.cpp
Cast some matrix sizes to type int.
Change some vector mask types to unsigned.
Conflicts:
modules/core/src/arithm.cpp
10 years ago
Mansour Moufid
42b1c6440c
Cast some matrix sizes to type int.
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
11 years ago
Ilya Lavrenov
aa5326c231
cv::norm -> cvtest::norm in tests
...
Conflicts:
modules/core/src/stat.cpp
11 years ago
Koji Miyazato
0a5d6e10b9
Added test code for I/O of user-defined types.
11 years ago
Rohit Girdhar
347a3dc520
added randomized test
11 years ago
Rohit Girdhar
ea7b1bb3d2
added test, doc
11 years ago
Ilya Lavrenov
37789f015a
deleted excess semicolons, commas
11 years ago
Vladislav Vinogradov
0c7663eb3b
Merge branch 'master' into gpu-cuda-rename
...
Conflicts:
modules/core/include/opencv2/core/cuda.hpp
modules/cudacodec/src/thread.cpp
modules/cudacodec/src/thread.hpp
modules/superres/perf/perf_superres.cpp
modules/superres/src/btv_l1_cuda.cpp
modules/superres/src/optical_flow.cpp
modules/videostab/src/global_motion.cpp
modules/videostab/src/inpainting.cpp
samples/cpp/stitching_detailed.cpp
samples/cpp/videostab.cpp
samples/gpu/stereo_multi.cpp
12 years ago
Roman Donchenko
8200a95ced
Boring changes - core.
...
This and several following commits contain the "boring" changes required
to support the new Ptr. These are changes like:
* new T -> makePtr<T> or .reset(new T) or Ptr<T>(new T)
(depending on the situation)
* p.empty() -> !p
* delete_obj -> DefaultDeleter::operator()
and similar changes that are numerous, but primitive.
12 years ago
Roman Donchenko
f55740da70
Deleted all trailing whitespace.
12 years ago
Bahram Dahi
6cf9070b9a
Added ability to read several opencv types (Size, Point, etc.) to FileStorage. Solves issue #3196
12 years ago
Roman Donchenko
f64d512774
Backported globbing from master.
12 years ago
Andrey Kamaev
c979de1eed
Rewrite Mat formatting without std streams
12 years ago
Andrey Kamaev
715fa3303e
Move cv::Mat out of core.hpp
12 years ago
Andrey Kamaev
be7bbe3aa9
Drop cv:: prefix from cv::String used inside the cv namespace
12 years ago
Andrey Kamaev
762aefd71b
Compile opencv_test_core with cv::String instead of std::string
...
All tests passed!
12 years ago
Vadim Pisarevsky
a4815cf359
removed extra whitespaces
12 years ago
Vadim Pisarevsky
38693ef37c
fixed http://code.opencv.org/issues/2899
12 years ago
marina.kolpakova
a486aafe7c
add dlobbing under *nix
12 years ago
Marina Kolpakova
162f9fd7ea
merged the trunk r8735:8766, r8769, r8777:8780, r8790 and r8800:8811
13 years ago
Andrey Kamaev
d9c74f63e1
All tests writing temporary files are updated to use cv::tempfile() function
13 years ago
Andrey Kamaev
9ad470ba5c
backported API for storing OpenCV data structures to text string and reading them back (r8481, r8516, r8518, r8522)
13 years ago
Vadim Pisarevsky
17d9509e31
changed "void FileStorage::release(string&)" to "string FileStorage::releaseAndGetString()"
13 years ago
Vadim Pisarevsky
74882fe188
replaced "string FileStorage::release()" with 2 methods to preserve backward compatibility.
13 years ago
Vadim Pisarevsky
bc929a7d46
added API for storing OpenCV data structures to text string and reading them back
13 years ago
Vadim Pisarevsky
2fd1e2ea57
merged all the latest changes from 2.4 to trunk
13 years ago
Andrey Kamaev
ae00e9074b
Added test for reading empty Mat from FileStorage
13 years ago
Vadim Pisarevsky
c7d38a3aab
restored try-catch in the i/o test
13 years ago
Vadim Pisarevsky
5e15557155
fixed a few bugs in XML/YAML input/output.
13 years ago
Vadim Pisarevsky
24bc0db1b0
fixed writing huge matrices (ticket #1439 )
13 years ago
Andrey Kamaev
b906ad3108
Test system included into Android build
14 years ago
Vadim Pisarevsky
061b49e0b2
reworked nearly all of the OpenCV tests (except for opencv_gpu tests) - they now use the Google Test engine.
14 years ago