Description Usage Arguments Value Author(s)
Crop an image on x and y. It is careful with NULL and out-of-range values. This function is useful in shiny app.
1 | crop_image(img, x_range = NULL, y_range = NULL)
|
img |
A matrix representing an image |
x_range |
Limits to crop the image on x. |
y_range |
Limits to crop the image on x. |
A cropped image (in matrix form)
Guillermo Basulto-Elias
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.