Expands an image towards the left, top, right, or bottom by sampling pixels
from the image edge. Users can choose how many pixels (rows or columns) are
sampled and how many pixels the expansion will have.
Usage
image_expand(
img,
left = NULL,
top = NULL,
right = NULL,
bottom = NULL,
edge = NULL,
sample_left = 10,
sample_top = 10,
sample_right = 10,
sample_bottom = 10,
random = FALSE,
filter = NULL,
plot = TRUE
)
Value
An Image object
Arguments
img
An Image object.
left, top, right, bottom
The number of pixels to expand in the left, top,
right, and bottom directions, respectively.
edge
The number of pixels to expand in all directions. This can be
used to avoid calling all the above arguments