View source: R/img_make_horizontal.R
img_make_horizontal | R Documentation |
Measure the orientation angle with img_orientation()
, rotate the image, then use img_centroid()
to detect the centroid and flip the image so that the centroid is is the top-right quadrant. All this works with a light-on-dark image.
img_make_horizontal(x)
x |
an image, of type |
x <- img_read(system.file("extdata", "amphipoda/33463695.jpg",
package="morphr"), invert=TRUE) %>% img_show()
img_make_horizontal(x) %>% img_show()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.