Learn R Programming

Rvision (version 0.4.3)

zeros: Create a Zero-Filled Image

Description

zeros creates an Image object filled with zeros.

Usage

zeros(nrow, ncol, colorspace = "BGR", bitdepth = "8U")

Arguments

nrow

An integer indicating desired the number of rows for the image.

ncol

An integer indicating desired the number of columns for the image.

colorspace

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).

bitdepth

A string indicating the desired bit depth for the image. Options are "8U" (the default), "8S", "16U", "16S", "32S", and "32F".

Value

An Image object.

See Also

Image, ones

Examples

Run this code
# NOT RUN {
zero <- zeros(100, 100)

# }

Run the code above in your browser using DataLab