Changeset 8652
- Timestamp:
- 07/11/12 19:59:00 (10 months ago)
- Location:
- ImageMagick/trunk/MagickCore
- Files:
-
- 2 edited
-
enhance.c (modified) (1 diff)
-
threshold.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/MagickCore/enhance.c
r8646 r8652 1085 1085 for (x=0; x < (ssize_t) image->columns; x++) 1086 1086 { 1087 double 1088 pixel; 1089 1087 1090 register ssize_t 1088 1091 i; 1089 1092 1093 pixel=(double) GetPixelIntensity(image,p); 1090 1094 for (i=0; i < (ssize_t) GetPixelChannels(image); i++) 1091 histogram[GetPixelChannels(image)*ScaleQuantumToMap(p[i])+i]++; 1095 { 1096 if (image->channel_mask != DefaultChannels) 1097 pixel=p[i]; 1098 histogram[GetPixelChannels(image)*ScaleQuantumToMap(pixel)+i]++; 1099 } 1092 1100 p+=GetPixelChannels(image); 1093 1101 } -
ImageMagick/trunk/MagickCore/threshold.c
r8650 r8652 438 438 if ((traits & UpdatePixelTrait) == 0) 439 439 continue; 440 if (image->channel_mask == DefaultChannels)440 if (image->channel_mask != DefaultChannels) 441 441 pixel=q[i]; 442 442 q[i]=(Quantum) (pixel <= threshold ? 0 : QuantumRange);
Note: See TracChangeset
for help on using the changeset viewer.
