px.flood | R Documentation |
Select pixels that are similar to a seed pixel. The underlying algorithm is the same as the bucket fill (AKA flood fill). Unlike with the bucket fill, the image isn't changed, the function simply returns a pixel set containing the selected pixels.
px.flood(im, x, y, z = 1, sigma = 0, high_connexity = FALSE)
im |
an image |
x |
X-coordinate of the starting point of the region to flood |
y |
Y-coordinate of the starting point of the region to flood |
z |
Z-coordinate of the starting point of the region to flood |
sigma |
Tolerance concerning neighborhood values. |
high_connexity |
Use 8-connexity (only for 2d images, default FALSE). |
Old name: selectSimilar (deprecated)
bucketfill
#Select part of a sail
px <- px.flood(boats,x=169,y=179,sigma=.2)
plot(boats)
highlight(px)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.