The Number of Rows/Columns/Frames of a Video
Source:R/VideoClass.R
, R/generic.R
video_dimensions.Rd
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.
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