px.remove_outer: Remove all connected regions that touch image boundaries

px.remove_outerR Documentation

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 documentation built on May 29, 2024, 1:38 a.m.