| render_reorient {rayimage} | R Documentation |
Reorients an image or matrix. Transformations are applied in this order: x, y, and transpose.
render_reorient( image, flipx = FALSE, flipy = FALSE, transpose = FALSE, filename = NULL, preview = FALSE )
image |
Image filename, 3-layer RGB array, or matrix. |
flipx |
Default |
flipy |
Default |
transpose |
Default |
filename |
Default |
preview |
Default |
3-layer RGB reoriented array or matrix.
#Original orientation plot_image(dragon) #Flip the dragon image horizontally dragon %>% render_reorient(flipx = TRUE) %>% plot_image() #Flip the dragon image vertically dragon %>% render_reorient(flipy = TRUE) %>% plot_image() #'#Transpose the dragon image dragon %>% render_reorient(transpose = TRUE) %>% plot_image()