Changeset 11601
- Timestamp:
- 07/09/08 17:55:26 (7 weeks ago)
- Files:
-
- 1 modified
-
ImageMagick/trunk/magick/shear.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/magick/shear.c
r11599 r11601 740 740 byte=(unsigned char) i; 741 741 for (count=0; byte != 0; byte>>=1) 742 count |=byte & 0x01;742 count+=byte & 0x01; 743 743 bits[i]=(unsigned short) count; 744 744 } … … 775 775 { 776 776 byte<<=1; 777 if (PixelIntensity(p) < threshold) 777 if ((p->red < threshold) || (p->green < threshold) || 778 (p->blue < threshold)) 778 779 byte|=0x01; 779 780 bit++; … … 824 825 { 825 826 byte<<=1; 826 if (PixelIntensity(p) < threshold) 827 if ((p->red < threshold) || (p->green < threshold) || 828 (p->blue < threshold)) 827 829 byte|=0x01; 828 830 bit++; … … 852 854 { 853 855 double 856 degrees, 854 857 sum; 855 858 … … 901 904 Deskew image. 902 905 */ 903 deskew_image=RotateImage(image,RadiansToDegrees(atan((double) skew/width/8)), 904 exception); 906 degrees=RadiansToDegrees(atan((double) skew/width/8)); 907 if (image->debug != MagickFalse) 908 (void) LogMagickEvent(TransformEvent,GetMagickModule()," Deskew angle: %g", 909 degrees); 910 deskew_image=RotateImage(image,degrees,exception); 905 911 if (image->fuzz != 0.0) 906 912 {
