Alexander Alekhin
0ed3209b00
ocl: avoid unnecessary loading/initializing OpenCL subsystem
...
If there are no OpenCL/UMat methods calls from application.
OpenCL subsystem is initialized:
- haveOpenCL() is called from application
- useOpenCL() is called from application
- access to OpenCL allocator: UMat is created (empty UMat is ignored) or UMat <-> Mat conversions are called
Don't call OpenCL functions if OPENCV_OPENCL_RUNTIME=disabled
(independent from OpenCL linkage type)
7 years ago
Maksim Shabunin
6c135261b2
Universal Intrinsics: aligned v_pack behavior on different platforms, fixed 64-bit register on ARM, added more saturate_cast variants
7 years ago
LaurentBerger
a44573c43b
Add ReLU and LeakyReLU activation function in ml module
7 years ago
Alexander Alekhin
486cfd1040
ts: detailed message
7 years ago
Pavel Rojtberg
3c795a0dab
add test_algorithm_rw using AKAZE
7 years ago
Pavel Rojtberg
6fbf0758bc
Python: wrap Algorithm::read and Algorithm::write
7 years ago
Wu Zhiwen
1f465a0ef9
dnn(ocl4dnn): fuseLayer() use umat_input/outputBlobs for OpenCL target
...
Also, fix bug when use OPENCL target but no OpenCL runtime
Signed-off-by: Wu Zhiwen <zhiwen.wu@intel.com>
7 years ago
Li Peng
a47fbd2610
Add ocl accuracy test for a few dnn nets
...
They are alexnet, mobilenet-ssd, resnet50, squeezeNet_v1_1,
yolo and fast_neural_style.
Signed-off-by: Li Peng <peng.li@intel.com>
7 years ago
Dmitry Kurtaev
99ed085752
Update PriorBox layer
7 years ago
elenagvo
c95bc0c7fd
add HAL for threshold
7 years ago
elenagvo
11ddb9332c
add HAL for adaptiveThreshold
7 years ago
LaurentBerger
606a5fd537
Try to solve issue 10166
7 years ago
Vadim Pisarevsky
ec076bfba3
Update imgproc.hpp
...
rewrote the added note in perhaps a cleaner way
7 years ago
Alexander Alekhin
92b35e6758
ocl: fix null pointer access crash
7 years ago
Alexander Alekhin
c38620e966
ocl: update OpenCL runtime loader
...
- fix compilation on Apple (undefined 'oclpath')
- don't warn on OPENCV_OPENCL_RUNTIME=disabled
7 years ago
Alexander Alekhin
b6abf0d3f9
ocl: drop obsolete cache directories after upgrade of OpenCL driver
...
Entries with the same platform name, the same device name and with different driver versions
are assumed obsolete.
7 years ago
Alexander Alekhin
cbf2b51e40
bindings(py): fix handling of 'isalgorithm'
7 years ago
Alexander Alekhin
13f374660f
dnn(ocl4dnn): drop unused batch_size_ in pooling
7 years ago
Alexander Alekhin
e34b64c979
dnn(ocl4dnn): refactor pooling OpenCL calls
7 years ago
Li Peng
636d6368ee
use OutputArrayOfArrays in net forward interface
...
It allows umat buffers used in net forward interface
Signed-off-by: Li Peng <peng.li@intel.com>
7 years ago
Wu, Zhiwen
04edc8fe3a
cleanup ocl4dnn spatial convolution kernels
...
remove unused macros and half definition macros,
also remove unused ocl::Queue
Signed-off-by: Li Peng <peng.li@intel.com>
7 years ago
Alexander Alekhin
559235ac74
videoio(ffmpeg): more workarounds for sws_scale() crash
...
Prevents access data after the end of input buffer near 4K page boundaries
7 years ago
Maksim Shabunin
6f48dc2482
Fixed GStreamer pipeline building on Ubuntu 17
7 years ago
Alexander Nesterov
8082011546
Update videoio tests
7 years ago
Maksim Shabunin
7628c143f4
videoio: fixed capture open order, added apiPrefernce to FFMPEG tests
7 years ago
elenagvo
5d0a8d2aaf
fix the parameters order
7 years ago
Alexander Alekhin
019de554a0
python(test): don't write bytecode
...
Tests are usually lauched from source directory, so additional unnecessary
files should be eliminated.
Alternative ways (command line):
- python -B ...
- PYTHONDONTWRITEBYTECODE=1 python ...
7 years ago
Alexander Alekhin
3ee8079f35
python(test): add tests filter
...
Usage example (bash):
$ OPENCV_PYTEST_FILTER=test_digits python test.py -v
7 years ago
Alexander Alekhin
b29893b938
dnn: autogenerated files
7 years ago
Alexander Alekhin
1c88a566e0
dnn: rename caffe protobuf package
7 years ago
Alexander Alekhin
3f37be5a30
core: fix compilation of intrinsic code
7 years ago
Alexander Alekhin
9db5cbf9a4
dnn: sync output/internals blobs back
7 years ago
Alexander Alekhin
8e6280fc8e
ocl: binary program cache
7 years ago
Maksim Shabunin
e57f22a386
Fixed allocSingleton
7 years ago
Maksim Shabunin
12662e064b
align singleton malloc
7 years ago
Maksim Shabunin
1c46034166
Other buffers
7 years ago
Maksim Shabunin
2178c5e95e
init ABtoXZ
7 years ago
Maksim Shabunin
b3018ba89e
LUV tables
7 years ago
Maksim Shabunin
e75056a084
static init
7 years ago
Maksim Shabunin
51fc891a5c
cvtColor: fixed tables init, moved some tables to heap
7 years ago
Alexander Alekhin
0f34628af7
dnn: drop OpenCL code path for DetectionOutputLayer
...
getUMat()/getMat() calls are scope based. Results of these calls can't be
stored somewhere for future usage.
7 years ago
Rostislav Vasilikhin
397b57dd72
Merge pull request #10041 from savuor:RevHoughWorks
...
HoughCircles rewritten (PR #7434 updated) (#10041 )
* initial version of renewed HoughCircles done
* fixed compilation
* fixed SIMD ability & compilation warning
* fixed accumulator nonmax comparison
* common Mutex for all invokers
* nzLocal is std::vector
* nz is std::vector
* SSE2 -> SIMD128
* centers is now std::vector
* circles is std::vector
* estimateRadius updated
* accum calculation w/o mutex
* less deprecated code
* several bugs fixed
* back to mutex, TLS gathering doesn't work
* extra code removed
* little refactoring
* docs note updated
* a little speedup
* warning fixed
7 years ago
zhongwuzw
01b581048d
Fix customPreviewLayer layout issue when rotateVideo is NO in iOS
7 years ago
Alexander Alekhin
b389c1cfe7
core(ocl): syntax fix
7 years ago
Alexander Alekhin
f19f2bbcde
dnn: autogenerated files
...
rename caffe.proto => opencv-caffe.proto
7 years ago
Alexander Alekhin
f6d927ef3b
dnn: avoid conflicts with original caffe.proto
...
rename caffe.proto => opencv-caffe.proto
7 years ago
David Geldreich
f723cede2e
add loading TensorFlow/Caffe net from memory buffer
...
add a corresponding test
7 years ago
Dmitry Kurtaev
6c5dd5cf6d
Replace caffe::NormalizedBBox to local structure
7 years ago
elenagvo
3a09da71d8
add HAL for medianBlur
7 years ago
Tomoaki Teshima
3cbe60cca2
Merge pull request #9753 from tomoaki0705:universalMatmul
...
* add accuracy test and performance check for matmul
* add performance tests for transform and dotProduct
* add test Core_TransformLargeTest for 8u version of transform
* remove raw SSE2/NEON implementation from matmul.cpp
* use universal intrinsic instead of raw intrinsic
* remove unused templated function
* add v_matmuladd which multiply 3x3 matrix and add 3x1 vector
* add v_rotate_left/right in universal intrinsic
* suppress intrinsic on some function and platform
* add pure SW implementation of new universal intrinsics
* add test for new universal intrinsics
* core: prevent memory access after the end of buffer
* fix perf tests
7 years ago