powered by
Pad image with n pixels along specified axis
pad(im, nPix, axes, pos = 0, val = 0)
the input image
how many pixels to pad with
which axes to pad along
-1: prepend 0: center 1: append
value to fill the padding with (default 0)
a padded image
# NOT RUN { pad(boats,20,"xy") %>% plot pad(boats,20,pos=-1,"xy") %>% plot pad(boats,20,pos=1,"xy") %>% plot # }
Run the code above in your browser using DataLab