Skip to content

Commit c2953da

Browse files
committed
Update documentation for cv::cuda::createMedianFilter
1 parent c4c74c4 commit c2953da

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

modules/cudafilters/include/opencv2/cudafilters.hpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,18 @@ CV_EXPORTS_W Ptr<Filter> createColumnSumFilter(int srcType, int dstType, int ksi
359359

360360
/** @brief Performs median filtering for each point of the source image.
361361
362-
@param srcType type of of source image. Only CV_8UC1 images are supported for now.
362+
@param srcType type of of source image. Only CV_8UC1 if CUDA_VERSION < 11. CV_8UC1, CV_8UC3, CV_8UC4, CV_16UC1, CV_16UC3, CV_16UC4, CV_32FC1, CV_32FC3 or CV_32FC4 if CUDA_VERSION >= 11.
363363
@param windowSize Size of the kernerl used for the filtering. Uses a (windowSize x windowSize) filter.
364-
@param partition Specifies the parallel granularity of the workload. This parameter should be used GPU experts when optimizing performance.
364+
@param partition Specifies the parallel granularity of the workload. Only used if CUDA_VERSION < 11.
365365
366366
Outputs an image that has been filtered using a median-filtering formulation.
367367
368-
Details on this algorithm can be found in:
368+
If compiled with CUDA 11 or greater, a wavelet based algorithm is used as described at:
369+
https://cgenglab.github.io/en/publication/sigga22_wmatrix_median/
370+
Yuji Moroto, Nobuyuki Umetani, 2022, "Constant Time Median Filter Using 2D Wavelet Matrix",
371+
ACM Transactions on Graphics, Volume 41, Issue 6.
372+
373+
For earlier versions of CUDA, details on the algorithm used can be found in:
369374
Green, O., 2017. "Efficient scalable median filtering using histogram-based operations",
370375
IEEE Transactions on Image Processing, 27(5), pp.2217-2228.
371376

0 commit comments

Comments
 (0)