fade_mask: Add a fading border to an image region

View source: R/pictplot.R

fade_maskR Documentation

Add a fading border to an image region

Description

Add a fading border to an image region

Usage

fade_mask(im, mask, npix, blur_radius = 3)

Arguments

im

an image

mask

an image

npix

thickness of the fading border

blur_radius

apply a blur of this radius to the fading border to avoid illusory edges at the image corners

Value

an image

Examples

im = regatta
mask = im_mono(0, im_height(im), im_width(im))
mask[ 100:350, 100:500,] = 1
plot(fade_mask(im, mask, 20))

tsuda16k/pictplot documentation built on March 1, 2023, 8:44 p.m.