From 1d8b6423f45c41b46cccb9e8e2aa89774c765a1b Mon Sep 17 00:00:00 2001 From: Oded Green Date: Fri, 17 Apr 2020 08:40:49 -0400 Subject: [PATCH] Added references to GPU median filtering algorithm --- modules/cudafilters/include/opencv2/cudafilters.hpp | 6 +++++- modules/cudafilters/src/cuda/median_filter.cu | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/cudafilters/include/opencv2/cudafilters.hpp b/modules/cudafilters/include/opencv2/cudafilters.hpp index fd28150f3..1519869f4 100644 --- a/modules/cudafilters/include/opencv2/cudafilters.hpp +++ b/modules/cudafilters/include/opencv2/cudafilters.hpp @@ -322,7 +322,11 @@ CV_EXPORTS_W Ptr createColumnSumFilter(int srcType, int dstType, int ksi @param windowSize Size of the kernerl used for the filtering. Uses a (windowSize x windowSize) filter. @param partition Specifies the parallel granularity of the workload. This parameter should be used GPU experts when optimizing performance. -Outputs an image that has been filtered using median-filtering formulation. +Outputs an image that has been filtered using a median-filtering formulation. + +Details on this algorithm can be found in: +Green, O., 2017. "Efficient scalable median filtering using histogram-based operations", + IEEE Transactions on Image Processing, 27(5), pp.2217-2228. */ CV_EXPORTS_W Ptr createMedianFilter(int srcType, int windowSize, int partition = 128); diff --git a/modules/cudafilters/src/cuda/median_filter.cu b/modules/cudafilters/src/cuda/median_filter.cu index cbc53f4b4..f6be58d62 100644 --- a/modules/cudafilters/src/cuda/median_filter.cu +++ b/modules/cudafilters/src/cuda/median_filter.cu @@ -40,6 +40,11 @@ // //M*/ +// Details on this algorithm can be found in: +// Green, O., 2017. "Efficient scalable median filtering using histogram-based operations", +// IEEE Transactions on Image Processing, 27(5), pp.2217-2228. + + #if !defined CUDA_DISABLER #include "opencv2/core/cuda/common.hpp"