]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 29 Sep 2014 22:30:01 +0000 (22:30 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 29 Sep 2014 22:30:01 +0000 (22:30 +0000)
MagickCore/effect.c

index f8129b390696c70d83a9124e49cb7cae32368ffa..fb3a065ac400da67c4fdcfee4a5a974c5b03926e 100644 (file)
@@ -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)