video_dimensions: The Number of Rows/Columns/Frames of a Video

nrow.Rcpp_VideoR Documentation

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)

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

nframes(x)

Arguments

x

A Video object.

Value

A numeric value.

Author(s)

Simon Garnier, garnier@njit.edu

See Also

dim which returns all dimensions.

Examples

balloon <- video(system.file("sample_vid/Balloon.mp4", package = "Rvision"))
nrow(balloon)
ncol(balloon)
nframes(balloon)


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