Shift Image

Shifts image, but keeps dimensions the same

shift_img(img, device, number, side='right', debug=None)

returns device, image after shift

Input image

Screenshot

from plantcv import plantcv as pcv

# Shift image
device, shifted_img = pcv.shift_img(img, device,300,"top", debug='print')

Image after shift

Screenshot