diff --git a/MagickCore/threshold.c b/MagickCore/threshold.c
index 9f68dcc..95875c6 100644
--- a/MagickCore/threshold.c
+++ b/MagickCore/threshold.c
@@ -266,7 +266,7 @@
           continue;
         if ((threshold_traits & CopyPixelTrait) != 0)
           {
-            SetPixelChannel(threshold_image,channel,p[center+i],q);
+            q[channel]=p[center+i];
             continue;
           }
         pixels=p;