Method: Magick::Image#motion_blur

Defined in:
ext/RMagick/rmimage.cpp

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

Simulate motion blur. Convolve 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 motion_blur selects a suitable radius for you. Angle gives the angle of the blurring motion.

Returns a new image.

Parameters:

  • radius (Numeric) (defaults to: 0.0)

    The radius

  • sigma (Numeric) (defaults to: 1.0)

    The standard deviation

  • angle (Numeric) (defaults to: 0.0)

    The angle (in degrees)

Returns:



9721
9722
9723
9724
9725
9726
# File 'ext/RMagick/rmimage.cpp', line 9721

VALUE
Image_motion_blur(int argc, VALUE *argv, VALUE self)
{
    rm_check_destroyed(self);
    return motion_blur(argc, argv, self, GVL_FUNC(MotionBlurImage));
}