summaryrefslogtreecommitdiff
path: root/dmagick/Image.d
diff options
context:
space:
mode:
Diffstat (limited to 'dmagick/Image.d')
-rw-r--r--dmagick/Image.d6
1 files changed, 3 insertions, 3 deletions
diff --git a/dmagick/Image.d b/dmagick/Image.d
index 3062658..a08abeb 100644
--- a/dmagick/Image.d
+++ b/dmagick/Image.d
@@ -1746,11 +1746,11 @@ class Image
* longer than you want to wait, and will not have
* significantly better results than much smaller values.
*/
- void medianFilter(double radius = 0)
+ //TODO: replace this with a statistic function?
+ void medianFilter(size_t radius = 0)
{
- //TODO: Recently deprecated use StatisticImage. (Update the headers first)
MagickCoreImage* image =
- MedianFilterImage(imageRef, radius, DMagickExceptionInfo());
+ StatisticImage(imageRef, StatisticType.MedianStatistic, radius, radius, DMagickExceptionInfo());
imageRef = ImageRef(image);
}