Changeset 11586 for ImageMagick/trunk

Show
Ignore:
Timestamp:
07/07/08 11:22:10 (7 weeks ago)
Author:
cristy
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/magick/shear.c

    r11585 r11586  
    855855 
    856856  Image 
    857     *blur_image, 
    858857    *deskew_image; 
    859858 
     
    875874    Compute deskew angle. 
    876875  */ 
    877   blur_image=BlurImage(image,0,1,exception); 
    878   if (blur_image == (Image *) NULL) 
    879     return(blur_image); 
    880876  for (width=1; width < ((image->columns+7)/8); width<<=1) ; 
    881877  projection=(unsigned long *) AcquireQuantumMemory((size_t) (2*width-1), 
    882878    sizeof(*projection)); 
    883879  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); 
    890882  if (status == MagickFalse) 
    891883    {