bucketfill: Bucket fill

Description Usage Arguments See Also Examples

Description

Bucket fill

Usage

1
2
bucketfill(im, x, y, z = 1, color, opacity = 1, sigma = 0,
  high_connexity = FALSE)

Arguments

im

an image

x

X-coordinate of the starting point of the region to fill.

y

Y-coordinate of the starting point of the region to fill.

z

Z-coordinate of the starting point of the region to fill.

color

Pointer to spectrum() consecutive values, defining the drawing color. If missing, use value at location (x,y,z)

opacity

Opacity of the drawing.

sigma

Tolerance concerning neighborhood values.

high_connexity

Use 8-connexity (only for 2d images, default FALSE).

See Also

selectSimilar

Examples

1
2
3
4
5
#Change the colour of a sail 
boats.new <- bucketfill(boats,x=169,y=179,color=c(125,0,125),sigma=20) 
layout(t(1:2))
plot(boats,main="Original")
plot(boats.new,main="New sails")


Search within the imager package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.