Skip to content
Permalink
Browse files Browse the repository at this point in the history
https://github.com/ImageMagick/ImageMagick/issues/296
  • Loading branch information
Cristy committed Oct 31, 2016
1 parent 5108653 commit 3cbfb16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MagickCore/fx.c
Expand Up @@ -5866,7 +5866,7 @@ MagickExport Image *WaveletDenoiseImage(const Image *image,
ThrowImageException(ResourceLimitError,"MemoryAllocationFailed");
pixels_info=AcquireVirtualMemory(3*image->columns,image->rows*
sizeof(*pixels));
kernel=(float *) AcquireQuantumMemory(MagickMax(image->rows,image->columns),
kernel=(float *) AcquireQuantumMemory(MagickMax(image->rows,image->columns)+1,
GetOpenMPMaximumThreads()*sizeof(*kernel));
if ((pixels_info == (MemoryInfo *) NULL) || (kernel == (float *) NULL))
{
Expand Down
2 changes: 1 addition & 1 deletion PerlMagick/demo/demo.pl
Expand Up @@ -483,7 +483,7 @@

print "WaveletDenoise...\n";
$example=$model->Clone();
$example->Label('WaveletDenoise');
$example->Label('Wavelet Denoise');
$example->WaveletDenoise('5%');
push(@$images,$example);

Expand Down

0 comments on commit 3cbfb16

Please sign in to comment.