Commit Graph

343 Commits

Author SHA1 Message Date
Alexey Spizhevoy
39700c5d54 added some gpu::matchTemplate kernels (other parts after NPP Staging integration) 2010-12-13 16:48:34 +00:00
Alexey Spizhevoy
a81b41fb08 fixed some warning under Ubuntu in gpu module 2010-12-13 15:56:29 +00:00
Alexey Spizhevoy
c9f9f38777 added gpu::sqrSum function 2010-12-13 14:34:02 +00:00
Vladislav Vinogradov
b18a3a5f83 fixed errors in StereoBeliefPropogation under linux 2010-12-13 13:52:40 +00:00
Anatoly Baksheev
070d87fb7f fixed bug with prefilter_xsobel preset. 2010-12-13 13:42:35 +00:00
Alexey Spizhevoy
e193fa1165 fixed minor bug in gpu::sum 2010-12-13 12:50:52 +00:00
Alexey Spizhevoy
3997514b7c added tests for gpu::sum, it supports all data types, but single channel images only 2010-12-13 12:00:58 +00:00
Vladislav Vinogradov
442cd75c32 fixed compile error under linux 2010-12-13 09:50:32 +00:00
Vladislav Vinogradov
49ec8ba742 fixed bug in gpu filter engine (incorrect buffer type) and in vector's saturate_cast.
changed buffer type in linear filters to float.
added support of 1 channel image to linear filters.
added support of BORDER_REFLECT101, BORDER_REPLICATE and BORDER_CONSTANT border type to gpu linear filters.
minor fix in tests.
update comments in gpu.hpp.
2010-12-13 08:43:04 +00:00
Anatoly Baksheev
6c2cce6e28 some files rename 2010-12-11 15:21:11 +00:00
Anatoly Baksheev
ec4d2b6bb9 Fixed serious kernel crash IN StereoBM_GPU for some parameter. Will more rework for the code farther. 2010-12-11 15:07:14 +00:00
Alexey Spizhevoy
79b1eec3d3 minor refactoring of gpu module 2010-12-10 14:02:41 +00:00
Alexey Spizhevoy
9f80317ffa fixed minor bug in gpu module, added first version of sum 2010-12-10 13:36:00 +00:00
Alexey Spizhevoy
d557c800a7 refactored gpu module 2010-12-10 10:23:32 +00:00
Alexey Spizhevoy
97484089c5 added support of CV_8U & CV_TM_CCORR into gpu::matchTemplate 2010-12-10 08:06:54 +00:00
Alexey Spizhevoy
9801d07a46 added test for gpu:columnSum 2010-12-08 16:51:12 +00:00
Alexey Spizhevoy
fa322bf46f added gpu::columnSum, fixed compile error (if there is no cuda), refactored 2010-12-08 15:06:10 +00:00
Alexey Spizhevoy
b1c5b9293e added support of CV_32F & CV_TM_SQDIFF into gpu::matchTemplate 2010-12-08 13:12:12 +00:00
Alexey Spizhevoy
40304721a7 added support of CV_TM_CCORR (via FFT) into gpu::matchTemplate (versions both with block and without blocks) 2010-12-08 13:03:53 +00:00
Vladislav Vinogradov
905e5f1739 added support of 4-channels images to StereoConstantSpaceBP.
refactored transpose_gpu, made it non template function.
2010-12-08 07:23:59 +00:00
Vladislav Vinogradov
c18aa438ec added support of 4 channels images to StereoBeliefPropagation, minor code refactoring. 2010-12-07 10:20:03 +00:00
Alexey Spizhevoy
349a9fac86 fixed compile-time warning under g++ 2010-12-07 07:16:13 +00:00
Alexey Spizhevoy
19b434be50 minor refactoring of gpu module 2010-12-07 06:45:54 +00:00
Anatoly Baksheev
652fb1212e module reorganization: added folder with pure device functions, cuda_shared.hpp renamed to internal_shared.hpp 2010-12-06 16:37:32 +00:00
Vladislav Vinogradov
fadd19b976 added assertion on Compute Capability >= 1.1 to BruteForceMatcher_GPU_base::radiusMatch 2010-12-06 14:51:47 +00:00
Alexey Spizhevoy
50167f6c26 added first version of gpu::matchTemplate, currently it works only with 8UC1 images and SQDIFF method 2010-12-06 14:19:41 +00:00
Vladislav Vinogradov
8891acb67a added BruteForceMatcher_GPU 2010-12-06 12:06:51 +00:00
Alexey Spizhevoy
77027f6075 refactored border interpolation in gpu module 2010-12-06 09:44:51 +00:00
Vladislav Vinogradov
17d9014373 added per-element min/max to gpu module.
fixed compile error in transform.
2010-12-06 08:10:11 +00:00
Anatoly Baksheev
d96c5ebb7d misprint 2010-12-06 08:03:33 +00:00
Alexey Spizhevoy
6ef4d9b1dd added sipport of BORDER_REPLICATE mode into gpu::corner* functions 2010-12-06 07:47:26 +00:00
Alexey Spizhevoy
103bbaf09c updated BrdReflect101 in gpu module 2010-12-03 13:28:49 +00:00
Alexey Spizhevoy
e75ca4b662 replaced global memory reads with texture memory reads in GPU's corner detectors 2010-12-03 13:11:14 +00:00
Alexey Spizhevoy
df48ad76b0 added support of gamama_correction parameter into gpu::HOGDescriptor, updated tests 2010-12-03 11:11:44 +00:00
Alexey Spizhevoy
2a2590bae2 replaced filter (from the nearest to linear) mode when resizing image in gpu::HOGDescriptor 2010-12-03 10:14:01 +00:00
Alexey Spizhevoy
68c41a6c6c minor fix in gpu's header 2010-12-02 09:29:49 +00:00
Alexey Spizhevoy
ab04a03621 added support of BORDER_REFLECT into gpu::cornerHarris and etc, added support of border extr. int linear filters 2010-12-02 09:07:13 +00:00
Alexey Spizhevoy
d9489bbe0c fixed bug in gpu::cornerHarris and gpu::cornerMinEigenVal 2010-12-01 10:00:47 +00:00
Vladislav Vinogradov
57f7678db1 added gpu transpose for CV_8UC4, CV_8SC4, CV_16SC2, CV_16UC2, CV_32SC1 and CV_32FC1 types 2010-12-01 07:00:50 +00:00
Alexey Spizhevoy
d0dfae5143 fixed bug in ms segmentation 2010-11-30 13:02:24 +00:00
Alexey Spizhevoy
32a9b63d2f added better threads configuration estimator for the minMax, minMaxLoc, countNonZero functions in gpu module 2010-11-30 12:27:21 +00:00
Alexey Spizhevoy
493d7a6e45 added min eigen val based corner detector into gpu module 2010-11-30 08:44:04 +00:00
Alexey Spizhevoy
9adfc2cadc added Harris corner detector into gpu module 2010-11-30 08:04:37 +00:00
Alexey Spizhevoy
b260382840 added masks support into gpu::minMaxLoc 2010-11-29 13:56:43 +00:00
Alexey Spizhevoy
678f392569 added is_signed into numeric_limits_gpu, fixed incorrect min max finding for floating values 2010-11-29 13:21:43 +00:00
Alexey Spizhevoy
6ad158dbe1 refactored gpu::minMaxLoc 2010-11-29 10:44:25 +00:00
Alexey Spizhevoy
437ac1a2f1 added mask support into gpu::minMax 2010-11-29 10:29:21 +00:00
Alexey Spizhevoy
8c48f3be9d moved GPU's global counter reset from caller to the kernel's end 2010-11-29 08:09:54 +00:00
Alexey Spizhevoy
3da253a259 replaced one-threads tail reduce with one-block tail reduce in functions gpu: minMax, minMaxLoc 2010-11-29 08:04:39 +00:00
Alexey Spizhevoy
1066bd2fa2 removed double support (gpu: minMax, minMaxLoc, countNonZero) for CC which doesn't have native double support 2010-11-29 07:31:09 +00:00
Alexey Spizhevoy
72f020a8f3 added gpu::count_non_zero version for CC1.0, refactored gpu module a little 2010-11-29 07:18:11 +00:00
Anatoly Baksheev
4c6ffc7c77 temporary removed VERSION_VAR (because this requires cmake 2.8.3) 2010-11-28 11:12:35 +00:00
Anatoly Baksheev
fbdb4f4ab5 1) gpu test refactoring.
2) fixed gpu bm test fail
3) CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3)
2010-11-26 17:24:12 +00:00
Alexey Spizhevoy
7e2cc1be1b added first version of gpu::countNonZero for all data types, it doesn't support compute capability 1.0 yet, also fixed some little bugs 2010-11-26 17:12:48 +00:00
Anatoly Baksheev
e470246ab5 restored version check (VERSION_VAR) 2010-11-26 15:51:43 +00:00
Martin Baeum
a7d979fb7e remove spurious VERSION_VAR (fixes #711) 2010-11-26 13:19:42 +00:00
Alexey Spizhevoy
bdaad9e1fe added support of buffers into gpu::minMaxLoc, reduced memory requirements, refactored 2010-11-26 07:50:11 +00:00
Alexey Spizhevoy
9ad7a1c927 fixed compile time errors in gpu module (if one compiles without CUDA) 2010-11-25 11:52:15 +00:00
Anatoly Baksheev
36ebf4ef0d cuda+npp version check at configure time. 2010-11-25 10:42:09 +00:00
Alexey Spizhevoy
fa5422a2ad added buf support into gpu::minMax 2010-11-25 10:19:06 +00:00
Alexey Spizhevoy
48183f10e7 optimized memory requirements for gpu::minMax's buffers, added support of compute capability 1.0 2010-11-25 09:57:02 +00:00
Anatoly Baksheev
7c77787c84 npp version check 2010-11-25 08:42:12 +00:00
Anatoly Baksheev
d6686240d5 added version detection for NPP 2010-11-24 18:44:11 +00:00
Alexey Spizhevoy
27690e3b6e added minMaxLoc function into gpu module 2010-11-24 11:40:14 +00:00
Anatoly Baksheev
0e43976259 1) more convenient naming for samples gpu
2) added mask support to device 'transform' function 
3) sample hog gpu: waitKey(1) -> waitKey(3), in other case image is not displayed.
2010-11-24 09:43:17 +00:00
Alexey Spizhevoy
68a7fc9868 optimized gpu::minMax a little 2010-11-24 09:19:11 +00:00
Alexey Spizhevoy
13d18d65a8 added support of multichannel matrices in gpu::minMax 2010-11-24 09:03:37 +00:00
Alexey Spizhevoy
282e01cb4a added support of all data types into gpu::minMax 2010-11-24 08:55:52 +00:00
Vladislav Vinogradov
3c0cc087d6 fixed bug in StereoConstantSpaceBP - missing load max_data_term to constant memory 2010-11-24 08:39:52 +00:00
Vladislav Vinogradov
dd2fe821c2 deleted NPP_VERSION and NPP_HAVE_COMPLEX_TYPE macros, because last NPP supports complex types under linux 2010-11-23 08:21:26 +00:00
Alexey Spizhevoy
d7c0c72b75 fixed scaling in gpu HOG 2010-11-22 14:13:23 +00:00
Alexey Spizhevoy
732bd621bb added masks support for bitwise operations on GPU 2010-11-22 09:39:34 +00:00
Andrey Morozov
680dc71bc5 fixed compilation error and warnings under ubuntu 2010-11-20 14:41:28 +00:00
Alexey Spizhevoy
6a9d022a9f added support of different descriptor formats into gpu HOGDescriptor 2010-11-19 12:06:11 +00:00
Alexey Spizhevoy
faf4d0bc74 added bitwise operations into gpu module 2010-11-19 10:19:35 +00:00
Alexey Spizhevoy
11c0c5bf85 added getDescriptors support into gpu HOG, also added commented test for this feature 2010-11-18 09:22:23 +00:00
Alexey Spizhevoy
8adc62016b added getDescriptors function (draft version) 2010-11-17 17:10:23 +00:00
Alexey Spizhevoy
2d01558479 added different win_stride values feature into gpu HOG, refactored gpu HOG sample 2010-11-17 14:11:30 +00:00
Alexey Spizhevoy
4568d702ff added getPeopleDetector_48x96 into gpu HOG 2010-11-17 08:31:24 +00:00
Anatoly Baksheev
edff674105 added default detector for winSize(64,128) for hog on gpu 2010-11-16 12:33:19 +00:00
Vladislav Vinogradov
be54f1237a minor fix 2010-11-16 07:40:37 +00:00
Alexey Spizhevoy
cc6a87fc9d fixed big in gpu::HOGDescriptor, added property into CPU's HOGDescriptor 2010-11-16 07:40:32 +00:00
Ethan Rublee
29b94ceef9 Fixing a small error in compilation for gpu - anatoly should review. 2010-11-15 17:42:34 +00:00
Anatoly Baksheev
f2df784830 fixed error reporting in GPU module (exceptions in destructors, etc) 2010-11-15 16:22:52 +00:00
Alexey Spizhevoy
fada88e100 fixed some bugs, added tests for gpu::HOGDescriptor 2010-11-15 12:51:30 +00:00
Alexey Spizhevoy
13134595fd added HOGDescriptor on GPU 2010-11-15 11:01:56 +00:00
Anatoly Baksheev
ac5298815a some device layer utility functions 2010-11-15 08:42:10 +00:00
Vladislav Vinogradov
19544b3d54 fixed gpu linear filters 2010-11-15 07:57:30 +00:00
Anatoly Baksheev
c8e93da01d minor (compilation fix) 2010-11-11 12:05:48 +00:00
Anatoly Baksheev
55a722fc9d some utility for GPU module internal purposes 2010-11-10 17:05:36 +00:00
Vladislav Vinogradov
863d61e9eb fix gpu module compilation under linux 2010-11-08 09:55:10 +00:00
Anatoly Baksheev
c923b258f4 fixed compilation under gcc 2010-11-01 15:13:17 +00:00
Anatoly Baksheev
7f56e5b2dd compilation errors 2010-11-01 12:49:45 +00:00
Anatoly Baksheev
4ea811c568 Fixed a minor bug in PtrElemStep::ptr 2010-11-01 12:48:47 +00:00
Anatoly Baksheev
cac2e9bc80 compilation errors under GCC 2010-10-31 17:15:09 +00:00
Anatoly Baksheev
d661b8e3e2 added PtrStep PtrElemStep structures. Refactored name spaces, 2010-10-31 13:23:25 +00:00
Vladislav Vinogradov
80c1aecfe5 moved gpu::cvtColor from imgproc_gpu.cpp to color.cpp 2010-10-26 09:37:24 +00:00
Vladislav Vinogradov
2c39f0ee33 fix unnecessary memory allocation in gpu::magnitude and gpu::phase 2010-10-26 05:44:50 +00:00
Anatoly Baksheev
5ac4b23b7c added PtrStep structure to pass in __global__ functions 2010-10-22 16:57:22 +00:00
Vladislav Vinogradov
7d0feef775 added vecmath to gpu module. 2010-10-20 15:17:51 +00:00
Vladislav Vinogradov
b08f60828b added to gpu module linear filters for int and float source types.
refactored gpu module.
2010-10-20 08:50:14 +00:00
Alexey Spizhevoy
fa245e5f21 refactored mssegmentation.cpp 2010-10-18 12:47:15 +00:00
Vladislav Vinogradov
e12e4798e0 added gpu version of magnitude, magnitudeSqr, phase, cartToPolar, polarToCart 2010-10-18 11:12:14 +00:00
Alexey Spizhevoy
6b5df89532 refactored mean shift segmentation a little 2010-10-13 14:08:18 +00:00
Vladislav Vinogradov
4124633359 added magnitudeSqr and rectStdDev to gpu module.
added supports of CV_32SC2 source to gpu scalar arithm and float source to gpu::histRange.
minor fix of gpu tests.
2010-10-13 12:52:39 +00:00
Vladislav Vinogradov
f4075e0168 added gpu::cvtColor for RGB <-> HSV and RGB <-> HLS 2010-10-13 09:42:29 +00:00
Alexey Spizhevoy
970dd7f593 implemented mean shift segmentation with elimination of small segments, added tests 2010-10-13 09:10:24 +00:00
Vladislav Vinogradov
f6895e7738 fixed gpu filters (deriv filter and source roi calculation) 2010-10-12 08:33:06 +00:00
Vladislav Vinogradov
ced60b7498 added histograms calculation to gpu module 2010-10-12 06:37:44 +00:00
Anatoly Baksheev
c09254cf67 fixed some warning under VS2008 2010-10-11 15:46:12 +00:00
Alexey Spizhevoy
adf7cc20b7 changed mean shift procedure a little 2010-10-11 14:25:30 +00:00
Vladislav Vinogradov
3e840cb798 added min/max filters to gpu module.
added supports of 4-channels image to gpu::minMax and gpu::cvtColor for RGB <-> YCrCB, RGB <-> YUV and RGB <-> XYZ color conversion.
2010-10-11 08:54:28 +00:00
Vladislav Vinogradov
66df8ef06c added Filter Engine to gpu module.
disabled gpu::sum, gpu::minMax, gpu:Canny until fix crash.
2010-10-06 14:32:13 +00:00
Anatoly Baksheev
7a3b0785d7 fixed gpu module build system (in case when WITH_CUDA is set, but CUDA Toolkit is not found) 2010-10-06 12:45:31 +00:00
Vladislav Vinogradov
49fa536c62 added Sobel, GaussianBlur, Canny to gpu module.
minor fix of matrix_operations.cpp.
2010-10-04 11:42:40 +00:00
Vladislav Vinogradov
fb7aa43feb added gpu 1d window sum, convertTo, based on NPP.
added RGB <-> XYZ color conversion.
gpu morphology minor fix.
2010-09-29 09:07:53 +00:00
Alexey Spizhevoy
12b7f3a0d0 fixed some compile-time problems (under Ubuntu) 2010-09-28 13:11:21 +00:00
Vladislav Vinogradov
bf25758159 fixed gpu morphology: anchor and iterations 2010-09-28 09:23:43 +00:00
Vladislav Vinogradov
2985c713e6 fixed short and float reading/writing in gpu::cvtColor 2010-09-28 09:10:25 +00:00
Anatoly Baksheev
60e572bbcf fixed gpu morphology: now kernel in gpu is passed to npp functions.
warnings in cxcore
added graphcut wrapper
2010-09-28 08:45:44 +00:00
Vladislav Vinogradov
5d95cd75f2 added gpu::cvtColor for RGB <-> YCrCb and RGB <-> YUV 2010-09-28 07:05:21 +00:00
Vladislav Vinogradov
5285722c1c added gpu::magnitude for complex source vector (two channels float).
added gpu::cvtColor for BGR5x5 <-> BGR and BGR5x5 <-> Gray.
2010-09-27 14:10:19 +00:00
Alexey Spizhevoy
992485c532 updated StereoBP docs & comments 2010-09-27 13:30:50 +00:00
Vladislav Vinogradov
51d5959aca added gpu add, subtract, multiply, divide, absdiff with Scalar.
added gpu exp, log, magnitude, based on NPP.
updated setTo with new NPP functions.
minor fix in tests and comments.
2010-09-27 12:44:57 +00:00
Alexey Spizhevoy
037002d3c1 added copyright for split_merge files 2010-09-27 12:27:27 +00:00
Vladislav Vinogradov
e1e5047b6e added gpu::LUT for CV_8UC3 type, added gpu::cvtColor for BGR2BGR5x5, minor fix in tests. 2010-09-27 09:37:43 +00:00
Anatoly Baksheev
1b8c00000c added black list for gpu tests 2010-09-27 06:57:25 +00:00
Anatoly Baksheev
a5910ac068 modified according to NPP for CUDA 3.2 API updates. 2010-09-24 16:41:34 +00:00
Anatoly Baksheev
a8161b7888 FindNPP.cmake: added support of NPP 3.2 2010-09-24 15:34:36 +00:00
Anatoly Baksheev
782f25a5a0 search in env var CUDA_NPP_ROOT 2010-09-24 12:01:26 +00:00
Vladislav Vinogradov
4100cbd997 added gpu version of LUT, integral, boxFilter and cvtColor (RGB <-> YCrCb), based on NPP.
minor refactoring of GPU module and GPU tests, split arithm and imgproc parts.
2010-09-22 10:58:01 +00:00
Alexey Spizhevoy
b2cdb7fa39 implemented cv::gpu::merge and cv::gpu::split functions 2010-09-20 13:20:25 +00:00
Vladislav Vinogradov
a2f8817df1 minor refactoring of GPU module and GPU tests
added gpu compare version for CMP_NE operation
2010-09-20 10:34:46 +00:00
Anatoly Baksheev
4ffb519cdd GPU module: minor interface changes 2010-09-17 17:18:41 +00:00
Anatoly Baksheev
1387bfcde0 added GPU implementation of morphology functions (using NPP) and tests for it.
added npp_error function
added check_and_treat_gpu_exception function for tests_gpu
2010-09-17 15:28:59 +00:00
Vladislav Vinogradov
b803c24345 added nppSafeCall 2010-09-15 14:34:41 +00:00
Vladislav Vinogradov
b181d78ca5 Added implementation and test for the GPU version of warpAffine, warpPerspective, rotate, based on NPP.
Renamed copyConstBorder to copyMakeBorder.
Fixed warnings when HAVE_CUDA is not defined.
2010-09-15 12:47:59 +00:00
Vladislav Vinogradov
b5c92a7dc0 Added implementation and test for the GPU version of flip, resize, sum, minMax, copyConstBorder, setTo, based on NPP. 2010-09-15 08:26:18 +00:00
Anatoly Baksheev
b5b00d9ad4 minor (unset NPP library variables if not found) 2010-09-14 08:58:39 +00:00
Vladislav Vinogradov
37d39bd9de Added implementation and test for the GPU version of subtract, multiply, divide, transpose, absdiff, threshold, compare, meanStdDev, norm, based on NPP. 2010-09-13 14:30:09 +00:00
Andrey Morozov
88a7a8f567 fixed build npp for linux 2010-09-13 07:40:34 +00:00
Anatoly Baksheev
74c4b5a5a9 Added compilation with NPP to GPU module(FindNPP script). Tested only on win32, but it does not influence on OpenCV compilation if WITH_CUDA flag unset. 2010-09-12 15:17:37 +00:00
Kirill Kornyakov
8e38063965 gpu::add now supports 8UC4 and 32FC1 2010-09-10 15:04:54 +00:00
Andrey Morozov
bbc2015014 created build infrastructure for NPP linking in CMake. 2010-09-10 11:02:52 +00:00
Kirill Kornyakov
01eac6d3e3 Added initial implementation and test for the GPU version of add, based on NPP. Need to implement for other depths. Also waiting NPP at CMake. 2010-09-09 15:34:16 +00:00
Andrey Morozov
1feb5b4d02 added async version of postfilter_textureness and prefilter_xsobel, modified async test and added test for async version of stereobm 2010-09-08 15:13:23 +00:00
Kirill Kornyakov
6960e1544d GPU module update: _GPU suffix removed, some namespaces renamed, minor refactorings. 2010-09-06 14:27:23 +00:00
Kirill Kornyakov
ec7e937481 meanShiftFiltering_GPU output parameters changed to CV_8UC4. This is a start for moving from 3 channel to C4 images within GPU module. 2010-09-03 14:32:12 +00:00
Anatoly Baksheev
e65234b8be minor compilation fix 2010-08-31 08:42:36 +00:00
Maria Dimashova
05d702b139 fixed compile error when HAVE_CUDA is not defined 2010-08-31 07:23:03 +00:00