cyy
10fb88d027
Merge pull request #12391 from DEEPIR:master
...
fix some errors found by static analyzer. (#12391 )
* fix possible divided by zero and by negative values
* only 4 elements are used in these arrays
* fix uninitialized member
* use boolean type for semantic boolean variables
* avoid invalid array index
* to avoid exception and because base64_beg is only used in this block
* use std::atomic<bool> to avoid thread control race condition
2018-09-04 16:39:19 +03:00
Hamdi Sahloul
4d78342919
Closes #12281 - a bug in cuda::pow with negative base values
2018-08-24 05:12:14 +09:00
Namgoo Lee
2c1ce8c0e9
cuda_meanStdDev : bug fix
2018-05-16 03:31:47 +09:00
Alexander Alekhin
7818071ba2
cuda: eliminate part of build warnings
2018-04-05 17:53:22 +03:00
Tomoaki Teshima
f4e5d777e8
follow histogram
2018-03-22 21:33:51 +09:00
Tomoaki Teshima
6c25351049
make the asynchronous call to NPP safe
...
* Stop calling nppSetStream
2018-03-22 21:33:51 +09:00
Tomoaki Teshima
bd215fbf33
suppress warning on Jetson TK1
2017-06-15 18:28:13 +09:00
Vadim Pisarevsky
ec49eb813c
Merge pull request #8314 from chacha21:fix_cuda_absdiff
2017-05-25 09:09:20 +00:00
Naba Kumar
00f3ad7217
Implement DFT as cv::Algorithm to support concurrent streams
2017-03-21 13:55:13 +02:00
chacha21
bfd800342b
use "double" from scalar only for CV_64F input
...
Restore "DstType" in AbsDiffScalarOp template arguments, even if
eventually it will be equal to SrcType
use "double" from scalar only for CV_64F input
2017-03-07 09:49:49 +01:00
chacha21
2375e58705
assert SrcDepth == DstDepth
...
simplify code by requesting srcDepth == dstDepth
2017-03-06 15:08:59 +01:00
chacha21
6cf4371eb4
make cuda::absdiff support multi-channel scalars
...
I took the subScalar.cu code and changed the inner operation
2017-03-03 18:24:12 +01:00
Tomoaki Teshima
b6a093fba1
accept multiple channels image for threshold on cuda
...
* modify test, too
2016-05-16 06:45:35 +09:00
aravind
f4f1561781
Fixed cv::cuda::reduce bug.
2016-02-27 08:30:10 +05:30
Vladislav Vinogradov
1bf811c3f1
fix cuda::normalize (dtype < 0) case
2015-10-02 11:41:01 +03:00
Vladislav Vinogradov
671b59aa9d
fix windows build with CUDA
...
rename cv::cuda::internal namespace
to cv::cuda::device to prevent conflicts
with cv::internal
2015-02-17 21:50:39 +03:00
Vladislav Vinogradov
a932d8aba1
use full qualified name for all internal namespaces to prevent ambiguous symbol errors
2015-02-16 11:31:21 +03:00
Vladislav Vinogradov
cd0e95de16
refactor cudaarithm reductions:
...
* remove overloads with explicit buffer, now BufferPool is used
* added async versions for all reduce functions
2014-12-30 11:06:33 +03:00
Vladislav Vinogradov
a4e598f474
use new BufferPool class for some cudaarithm routines
2014-12-30 11:06:33 +03:00
Vladislav Vinogradov
7454189c2a
use new getInputMat/getOutputMat/syncOutput methods in cudaarithm routines
2014-12-30 11:06:33 +03:00
Vladislav Vinogradov
53862687d5
rename CudaMem -> HostMem to better reflect its purpose
2014-12-23 17:42:49 +03:00
Roman Donchenko
4f1aed98de
Merge remote-tracking branch 'origin/2.4' into merge-2.4
...
Conflicts:
.gitignore
modules/contrib/src/detection_based_tracker.cpp
modules/core/include/opencv2/core/core.hpp
modules/core/include/opencv2/core/internal.hpp
modules/core/src/gpumat.cpp
modules/core/src/opengl.cpp
modules/gpu/src/cuda/safe_call.hpp
modules/highgui/src/cap.cpp
modules/imgproc/include/opencv2/imgproc/imgproc.hpp
modules/ocl/doc/image_processing.rst
modules/ocl/include/opencv2/ocl/ocl.hpp
modules/ocl/perf/perf_haar.cpp
modules/ocl/src/haar.cpp
modules/ocl/src/imgproc.cpp
modules/ocl/src/kmeans.cpp
modules/ocl/src/svm.cpp
modules/ocl/test/test_objdetect.cpp
samples/ocl/adaptive_bilateral_filter.cpp
2013-11-11 16:55:36 +04:00
Vladislav Vinogradov
8ed47c01b7
used new device layer for cv::cuda::norm
2013-10-01 15:28:51 +04:00
Vladislav Vinogradov
23cc31e041
used new device layer for cv::cuda::LUT
2013-10-01 15:24:17 +04:00
Vladislav Vinogradov
06f07944c8
removed dependecy from cudalegacy
2013-10-01 12:18:40 +04:00
Vladislav Vinogradov
7839dbd2c4
used new device layer for cv::gpu::integral
2013-10-01 12:18:39 +04:00
Vladislav Vinogradov
224f18b06c
bitwise operation optimization
2013-10-01 12:18:39 +04:00
Vladislav Vinogradov
eb449968b6
removed unroll_detail.hpp
2013-10-01 12:18:39 +04:00
Vladislav Vinogradov
1ef211b889
used new device layer for cv::gpu::reduce
2013-10-01 12:18:39 +04:00
Vladislav Vinogradov
31a7814395
used new device layer for cv::gpu::countNonZero
2013-10-01 12:18:39 +04:00
Vladislav Vinogradov
020624c481
used new device layer for cv::gpu::minMaxLoc
2013-10-01 12:18:39 +04:00
Vladislav Vinogradov
3fb9c52272
cast to reference
2013-10-01 12:18:38 +04:00
Vladislav Vinogradov
045a856c24
used new device layer for cv::gpu::minMax
2013-10-01 12:18:38 +04:00
Vladislav Vinogradov
b705e0d886
used new device layer for cv::gpu::sum
2013-10-01 12:18:38 +04:00
Vladislav Vinogradov
e820c5c65f
used new device layer for cv::gpu::mulSpectrums
2013-10-01 12:18:38 +04:00
Vladislav Vinogradov
3f62e78592
used new device layer for cv::gpu::copyMakeBorder
2013-10-01 12:18:38 +04:00
Vladislav Vinogradov
7b3bbcea71
used new device layer for cv::gpu::transpose
2013-10-01 12:18:37 +04:00
Vladislav Vinogradov
6dbb32a05d
switched to new device layer in split/merge
2013-10-01 12:18:37 +04:00
Vladislav Vinogradov
3ab7f4b26a
removed arithm_func_traits.hpp
2013-10-01 12:18:37 +04:00
Vladislav Vinogradov
7c8c836a7b
switched to new device layer in polar <-> cart
2013-10-01 12:18:37 +04:00
Vladislav Vinogradov
5522f43b18
used new device layer for cv::gpu::threshold
2013-10-01 12:18:37 +04:00
Vladislav Vinogradov
e83be009a3
used new device layer for cv::gpu::addWeighted
2013-10-01 12:18:37 +04:00
Vladislav Vinogradov
c7a3a7d4d9
switched to new device layer in min/max
2013-10-01 12:18:36 +04:00
Vladislav Vinogradov
b11cccaaca
switched to new device layer in bitwize operations
2013-10-01 12:18:36 +04:00
Vladislav Vinogradov
fdfffa5291
fixed warnings
2013-10-01 12:18:36 +04:00
Vladislav Vinogradov
ef9917ecf1
used new device layer for cv::gpu::compare
2013-10-01 12:18:36 +04:00
Vladislav Vinogradov
43e811118b
fixed assertion
2013-10-01 12:18:36 +04:00
Vladislav Vinogradov
766d950ff3
used new device layer in math per element operations
2013-10-01 12:18:36 +04:00
Vladislav Vinogradov
7628e57fc6
used new device layer for cv::gpu::absdiff
2013-10-01 12:18:35 +04:00
Vladislav Vinogradov
574ff47146
used new device layer for cv::gpu::divide
2013-10-01 12:18:35 +04:00