blur: Blur images

View source: R/blur.R

blurR Documentation

Blur images

Description

Applies a Gaussian blur to selected frames. Wraps magick::image_blur.

Usage

blur(images, radius = 1, sigma = 0.5, frames = NULL)

Arguments

images

an object of class magick-image to modify

radius

a non-negative number specifying the blur radius in pixels.

sigma

a non-negative number specifying the standard deviation of the Gaussian, controlling blur strength. Use 0 for no blur.

frames

integer vector of frame indices to duplicate. Defaults to NULL, which duplicates all frames.

Value

a magick-image object

Verbosity

After each operation a message listing the updated frame sequence is printed in interactive sessions. Use stopmotion_verbosity(FALSE) to suppress these messages, or set options(stopmotion.verbose = FALSE) in your script or ‘.Rprofile’.

Examples


  dino_dir <- system.file("extdata", package = "stopmotion")
  images <- read(dir = dino_dir)
  blur(images = images, radius = 2, sigma = 1)
  blur(images = images, radius = 2, sigma = 1, frames = 1:3)


stopmotion documentation built on March 24, 2026, 5:06 p.m.

Related to blur in stopmotion...