Skip to contents

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)

# S3 method for class 'Rcpp_Video'
nframes(x)

nframes(x)

Arguments

x

A Video object.

Value

A numeric value.

See also

dim which returns all dimensions.

Author

Simon Garnier, garnier@njit.edu

Examples

balloon <- video(system.file("sample_vid/Balloon.mp4", package = "Rvision"))
#> Error: Could not open the video.
nrow(balloon)
#> Error in eval(expr, envir, enclos): object 'balloon' not found
ncol(balloon)
#> Error in eval(expr, envir, enclos): object 'balloon' not found
nframes(balloon)
#> Error in eval(expr, envir, enclos): object 'balloon' not found