Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

px.remove_outer

Remove all connected regions that touch image boundaries


Description

All pixels that belong to a connected region in contact with image boundaries are set to FALSE.

Usage

px.remove_outer(px)

Arguments

px

a pixset

Value

a pixset

Author(s)

Simon Barthelme

Examples

im <- draw_circle(imfill(100,100),c(0,50,100),c(50,50,50),radius=10,color=1)
plot(im)
as.pixset(im) %>% px.remove_outer %>% plot

imager

Image Processing Library Based on 'CImg'

v0.42.10
LGPL-3
Authors
Simon Barthelme [aut], David Tschumperle [ctb], Jan Wijffels [ctb], Haz Edine Assemlal [ctb], Shota Ochi [cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.