Flip Image

Flips and image in either the horizontal or vertical direction

plantcv.flip(img, direction)

returns flipped_image

Original image

Screenshot

from plantcv import plantcv as pcv

# Set global debug behavior to None (default), "print" (to file), or "plot" (Jupyter Notebooks or X11)
pcv.params.debug = "print"

# Flip Image Horizontal
flipped= pcv.flip(img, 'horizontal')

Flipped Image

Screenshot

from plantcv import plantcv as pcv

# Set global debug behavior to None (default), "print" (to file), or "plot" (Jupyter Notebooks or X11)
pcv.params.debug = "print"

# Flip Image Vertical
flipped= pcv.flip(img, 'vertical')

Flipped Image

Screenshot