Method: Magick::Image#reduce_noise
- Defined in:
- ext/RMagick/rmimage.c
#reduce_noise(radius) ⇒ Object
Smooth the contours of an image while still preserving edge information.
Ruby usage:
- @verbatim Image#reduce_noise(radius) @endverbatim
10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 |
# File 'ext/RMagick/rmimage.c', line 10821
VALUE
Image_reduce_noise(VALUE self, VALUE radius)
{
Image *image, *new_image;
ExceptionInfo exception;
image = rm_check_destroyed(self);
GetExceptionInfo(&exception);
new_image = ReduceNoiseImage(image, NUM2DBL(radius), &exception);
rm_check_exception(&exception, new_image, DestroyOnError);
(void) DestroyExceptionInfo(&exception);
return rm_image_new(new_image);
}
|