
ones
creates an Image
object filled with
ones.
ones(nrow, ncol, colorspace = "BGR", bitdepth = "8U")
An integer indicating desired the number of rows for the image.
An integer indicating desired the number of columns for the image.
A string indicating the desired color space for the image. Options are "BGR" (Blue Green Red image, the default), "BGRA" (BGR image with Alpha channel), and "GRAY" (grayscale image).
A string indicating the desired bit depth for the image. Options are "8U" (the default), "8S", "16U", "16S", "32S", and "32F".
An Image
object.
# NOT RUN {
one <- ones(100, 100)
# }
Run the code above in your browser using DataLab