1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-17 07:04:18 +08:00
Commit Graph

13 Commits

Author SHA1 Message Date
Troels Ynddal
6329974d4d Merge pull request #3943 from troelsy:4.x
Add Otsu's method to cv::cuda::threshold #3943

I implemented Otsu's method in CUDA for a separate project and want to add it to cv::cuda::threshold

I have made an effort to use existing OpenCV functions in my code, but I had some trouble with `ThresholdTypes` and `cv::cuda::calcHist`. I couldn't figure out how to include `precomp.hpp` to get the definition of `ThresholdTypes`. For `cv::cuda::calcHist` I tried adding `opencv_cudaimgproc`, but it creates a circular dependency on `cudaarithm`. I have include a simple implementation of `calcHist` so the code runs, but I would like input on how to use `cv::cuda::calcHist` instead. 

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [ ] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
2025-06-19 16:38:53 +03:00
cudawarped
06ddccebed cudaarithm: fix python bindings for binary ops involving scalars 2024-10-29 15:42:50 +02:00
Pierre Chatelier
667a66ee0e Merge pull request #3607 from chacha21:cuda_phase_interleaved
Add interleaved versions of phase/cartToPolar/polarToCart #3607

This PR is for performance only (at the cost of more template code and increased GPU code size) The additional variants can help the caller skip the creation of temporary GPU mats (where memory is more likely to be a critical resource), and can even allow in-place processing. magnitude/angles/x/y are often already interleaved when dealing with DFTs.

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [X] I agree to contribute to the project under Apache 2 License.
- [X] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [X] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [X] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [X] The feature is well documented and sample code can be built with the project CMake
2024-07-22 16:00:24 +03:00
cudawarped
ea450e6378 Fix cuda::minMax and cuda::minMaxLoc python bindings to correctly output the results.
Added test case.
2022-03-22 18:41:53 +00:00
Alexander Smorkalov
df101fd7e3 Added 32FC1 type support and mask to cuda::meanStdDev implementation. 2022-03-11 08:33:03 +03:00
Suleyman TURKMEN
180775f5bb fix legacy contants 2021-12-01 02:21:38 +03:00
Aaron Miller
f1c0b5eae6 Implement cv::cuda::inRange (Fixes OpenCV #6295) 2021-01-18 21:50:41 -05:00
cudawarped
d7d6360fce Merge pull request #2396 from cudawarped:fix_python_cudawarping_cudaarithm
Add python bindings to cudaobjdetect, cudawarping and cudaarithm

* Overload cudawarping functions to generate correct python bindings.
Add python wrapper to convolution funciton.

* Added shift and hog.

* Moved cuda python tests to this repo and added python bindings to SURF.

* Fix SURF documentation and allow meanshiftsegmention to create GpuMat internaly if not passed for python bindings consistency.

* Add correct cuda SURF test case.

* Fix python mog and mog2 python bindings, add tests and  correct cudawarping documentation.

* Updated KeyPoints in cuda::ORB::Convert python wrapper to be an output argument.

* Add changes suggested by alalek

* Added changes suggested by asmorkalov
2020-01-29 12:54:42 +03:00
cudawarped
454434bdff Cudaarithm python bindings for merge and split are inconsistent with the format of existing cuda python functions. Split does not return its output and merg's documentation is incorrect. 2019-12-16 18:34:42 +00:00
Ahmed Ashour
55f389e8fa [moved from opencv] java: generated code to have javadoc
original commit: 5c56b8ce92
2019-06-05 12:44:03 +02:00
Antonio Borondo
c7c7036121 [moved from opencv] Fix documentation of cv::cuda::compare
original commit: 28e55dc5f3
2018-10-01 13:23:18 +01:00
Hamdi Sahloul
4b1e26a9ca [moved from opencv] cuda::polarToCart: update documentation
original commit: 5db13fe2a7
2018-09-22 07:02:43 +09:00
Alexander Alekhin
82733fe56b cuda: move CUDA modules to opencv_contrib
OpenCV 4.0+
2018-09-19 18:57:43 +03:00