bbox | R Documentation |
This function returns the bounding box of a pixset as another pixset. If the image has more than one frame, a bounding cube is returned. If the image has several colour channels, the bounding box is computed separately in each channel. crop.bbox crops an image using the bounding box of a pixset.
bbox(px) crop.bbox(im, px)
px |
a pixset |
im |
an image |
a pixset object
crop.bbox
: crop image using the bounding box of pixset px
Simon Barthelme
im <- grayscale(boats) px <- im > .85 plot(im) highlight(bbox(px)) highlight(px,col="green") crop.bbox(im,px) %>% plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.