Skip to contents

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

Usage

nrow.VideoStack(x)

nrow.VideoStack(x)

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

Arguments

x

A VideoStack object.

Value

A numeric value.

See also

dim which returns all dimensions.

Author

Simon Garnier, garnier@njit.edu

Examples

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