zeros: Create a Zero-Filled Image

View source: R/ImageClass.R

zerosR Documentation

Create a Zero-Filled Image

Description

zeros creates an Image object filled with zeros.

Usage

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

Arguments

nrow

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

ncol

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

nchan

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

bitdepth

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

colorspace

A string indicating the desired color space for the image.

Value

An Image object.

Author(s)

Simon Garnier, garnier@njit.edu

See Also

Image, ones

Examples

zero <- zeros(100, 100)


swarm-lab/Rvision documentation built on Feb. 7, 2024, 4:59 a.m.