Changeset 11586 for ImageMagick/trunk
- Timestamp:
- 07/07/08 11:22:10 (7 weeks ago)
- Files:
-
- 1 modified
-
ImageMagick/trunk/magick/shear.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/magick/shear.c
r11585 r11586 855 855 856 856 Image 857 *blur_image,858 857 *deskew_image; 859 858 … … 875 874 Compute deskew angle. 876 875 */ 877 blur_image=BlurImage(image,0,1,exception);878 if (blur_image == (Image *) NULL)879 return(blur_image);880 876 for (width=1; width < ((image->columns+7)/8); width<<=1) ; 881 877 projection=(unsigned long *) AcquireQuantumMemory((size_t) (2*width-1), 882 878 sizeof(*projection)); 883 879 if (projection == (unsigned long *) NULL) 884 { 885 blur_image=DestroyImage(blur_image); 886 ThrowImageException(ResourceLimitError,"MemoryAllocationFailed"); 887 } 888 status=RadonTransform(blur_image,threshold,projection,exception); 889 blur_image=DestroyImage(blur_image); 880 ThrowImageException(ResourceLimitError,"MemoryAllocationFailed"); 881 status=RadonTransform(image,threshold,projection,exception); 890 882 if (status == MagickFalse) 891 883 {
