Method: Magick::Image#adaptive_blur

Defined in:
ext/RMagick/rmimage.cpp

#adaptive_blur(radius = 0.0, sigma = 1.0) ⇒ Magick::Image

Adaptively blurs the image by blurring more intensely near image edges and less intensely far from edges. The #adaptive_blur method blurs the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and adaptive_blur selects a suitable radius for you.

Returns a new image.

Parameters:

  • radius (Numeric) (defaults to: 0.0)

    The radius of the Gaussian in pixels, not counting the center pixel.

  • sigma (Numeric) (defaults to: 1.0)

    The standard deviation of the Laplacian, in pixels.

Returns:



450
451
452
453
454
# File 'ext/RMagick/rmimage.cpp', line 450

VALUE
Image_adaptive_blur(int argc, VALUE *argv, VALUE self)
{
    return adaptive_method(argc, argv, self, GVL_FUNC(AdaptiveBlurImage));
}