]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Tue, 13 Dec 2016 02:11:21 +0000 (21:11 -0500)
committerCristy <urban-warrior@imagemagick.org>
Tue, 13 Dec 2016 02:11:21 +0000 (21:11 -0500)
MagickCore/compare.c

index f6fcf120750ebf2ae422bf490ffd1d336315c4eb..37f760b860568c0e28f8ea0a6f817b92f648ef09 100644 (file)
@@ -560,6 +560,9 @@ static MagickBooleanType GetFuzzDistortion(const Image *image,
         channel_distortion[i]+=distance*distance;
         channel_distortion[CompositePixelChannel]+=distance*distance;
       }
+#if defined(MAGICKCORE_OPENMP_SUPPORT)
+      #pragma omp critical (MagickCore_GetFuzzDistortion)
+#endif
       area++;
       p+=GetPixelChannels(image);
       q+=GetPixelChannels(reconstruct_image);
@@ -671,6 +674,9 @@ static MagickBooleanType GetMeanAbsoluteDistortion(const Image *image,
         channel_distortion[i]+=distance;
         channel_distortion[CompositePixelChannel]+=distance;
       }
+#if defined(MAGICKCORE_OPENMP_SUPPORT)
+      #pragma omp critical (MagickCore_GetFuzzDistortion)
+#endif
       area++;
       p+=GetPixelChannels(image);
       q+=GetPixelChannels(reconstruct_image);
@@ -878,6 +884,9 @@ static MagickBooleanType GetMeanSquaredDistortion(const Image *image,
         channel_distortion[i]+=distance*distance;
         channel_distortion[CompositePixelChannel]+=distance*distance;
       }
+#if defined(MAGICKCORE_OPENMP_SUPPORT)
+      #pragma omp critical (MagickCore_GetFuzzDistortion)
+#endif
       area++;
       p+=GetPixelChannels(image);
       q+=GetPixelChannels(reconstruct_image);