img_chop | R Documentation |
Chop away borders from an image
img_chop(x, top = 0, right = 0, bottom = 0, left = 0)
x |
input image (a |
top |
number of pixels to chop from the top. |
right |
same, from the right. |
bottom |
same, from the bottom |
left |
same, from the left. |
The image with the pixels chopped off.
x <- img_read(system.file("extdata", "blob.jpg", package="morphr"))
img_show(x)
# chop off some pieces around the main object
img_chop(x, t=17, r=15, b=50, l=15) %>% img_show()
# just remove the legend
img_chop(x, b=31) %>% img_show()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.