image_square {pliman} | R Documentation |
Squares an image
Description
Converts a rectangular image into a square image by expanding the
rows/columns using image_expand()
.
Usage
image_square(img, plot = TRUE, ...)
Arguments
img |
An |
plot |
Plots the extended image? defaults to |
... |
Further arguments passed on to |
Value
The modified Image
object.
Examples
library(pliman)
img <- image_pliman("soybean_touch.jpg")
dim(img)
square <- image_square(img)
dim(square)
[Package pliman version 2.1.0 Index]