commit | f7dc44c9e0393fc1a20056eadff13dbcda815207 | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Wed Jul 20 14:41:15 2011 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Wed Jul 20 14:41:15 2011 +0000 |
tree | 0a7cf92eca668c81e72099164138eca1a8f6c725 | |
parent | 303017169ae8e3cfaf909c7fef8891bff22813f5 [diff] [blame] |
diff --git a/MagickCore/threshold.c b/MagickCore/threshold.c index 8117af9..9f68dcc 100644 --- a/MagickCore/threshold.c +++ b/MagickCore/threshold.c
@@ -281,8 +281,8 @@ pixels+=image->columns*channels; } mean=pixel/number_pixels+bias; - SetPixelChannel(threshold_image,channel,(Quantum) (((MagickRealType) - p[center+i] <= mean) ? 0 : QuantumRange),q); + q[channel]=(Quantum) (((MagickRealType) p[center+i] <= mean) ? 0 : + QuantumRange); } p+=channels; q+=threshold_channels;