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
)3-layer RGB/4-layer RGBA array, rayimg class, or filename of an image.
Default FALSE. Flip horizontally
Default FALSE. Flip vertically.
Default FALSE. Transpose image.
Default NULL. The filename of the image to be saved. If this is not given, the image will be plotted instead.
Default FALSE. Whether to plot the convolved image, or just to return the values.
3-layer RGB reoriented array or matrix.
if(run_documentation()){
#Original orientation
plot_image(dragon)
}
 if(run_documentation()){
#Flip the dragon image horizontally
dragon |>
 render_reorient(flipx = TRUE) |>
 plot_image()
}
if(run_documentation()){
#Flip the dragon image horizontally
dragon |>
 render_reorient(flipx = TRUE) |>
 plot_image()
}
 if(run_documentation()){
#Flip the dragon image vertically
dragon |>
 render_reorient(flipy = TRUE) |>
 plot_image()
}
if(run_documentation()){
#Flip the dragon image vertically
dragon |>
 render_reorient(flipy = TRUE) |>
 plot_image()
}
 if(run_documentation()){
#Transpose the dragon image
dragon |>
 render_reorient(transpose = TRUE) |>
 plot_image()
}
if(run_documentation()){
#Transpose the dragon image
dragon |>
 render_reorient(transpose = TRUE) |>
 plot_image()
}
