powered by
Converts a rectangular image into a square image by expanding the rows/columns using image_expand().
image_expand()
image_square(img, plot = TRUE, ...)
The modified Image object.
Image
An Image object.
Plots the extended image? defaults to FALSE.
FALSE
Further arguments passed on to image_expand().
library(pliman) img <- image_pliman("soybean_touch.jpg") dim(img) square <- image_square(img) dim(square)
Run the code above in your browser using DataLab