From b4800613a0d8fb754aeca29c6c56e65624e02090 Mon Sep 17 00:00:00 2001 From: cristy Date: Mon, 29 Sep 2014 22:30:01 +0000 Subject: [PATCH] --- MagickCore/effect.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/MagickCore/effect.c b/MagickCore/effect.c index f8129b390..fb3a065ac 100644 --- a/MagickCore/effect.c +++ b/MagickCore/effect.c @@ -1500,6 +1500,10 @@ MagickExport Image *KuwaharaImage(const Image *image,const double radius, const Quantum *restrict p[4]; + double + optimal_variance[MaxPixelChannels], + value[MaxPixelChannels]; + for (i=0; i < 4; i++) { ssize_t @@ -1545,6 +1549,28 @@ MagickExport Image *KuwaharaImage(const Image *image,const double radius, status=MagickFalse; break; } + for (i=0; i < 4; i++) + { + double + max[MaxPixelChannels], + mean[MaxPixelChannels], + min[MaxPixelChannels], + variance[MaxPixelChannels]; + + ssize_t + j, + z; + + for (j=0; j < MaxPixelChannels; j++) + { + max[j]=(-MagickMaximumValue); + min[j]=MagickMaximumValue; + mean[j]=0.0; + } + for (z=0; z < (ssize_t) (width*width); z++) + { + } + } q+=GetPixelChannels(kuwahara_image); } if (SyncCacheViewAuthenticPixels(kuwahara_view,exception) == MagickFalse) -- 2.50.1