Learn R Programming

Rvision (version 0.6.0)

nrow.Rcpp_Video: The Number of Rows/Columns/Frames of a Video

Description

nrow, ncol and nframes return the number of rows, columns or frames present in a Video object.

Usage

nrow.Rcpp_Video(x)

ncol.Rcpp_Video(x)

nframes(x)

Arguments

x

A Video object.

Value

A numeric value.

See Also

dim which returns all dimensions.

Examples

Run this code
# NOT RUN {
balloon <- video(system.file("sample_vid/Balloon.mp4", package = "Rvision"))
nrow(balloon)
ncol(balloon)
nframes(balloon)

# }

Run the code above in your browser using DataLab