crop | R Documentation |
Crop a grayscale or binary Image
object to contain only
non-zero values plus a given border
crop(img, border = 1, fill = 0)
img |
A grayscale or binary |
border |
Single integer value of border to add to cropped image |
bg |
Background value for border |
Non-zero pixels on the edge of the image are removed, leaving a border of
border
pixels of bg
color.
A cropped image with the specified border
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.