Skip to contents

Operators acting on VideoStack objects to extract or replace the Video objects they contain.

Usage

# S3 method for VideoStack
[[(x, i)

# S3 method for VideoStack
[[(x, i) <- value

# S3 method for VideoStack
[(x, i)

# S3 method for VideoStack
[(x, i) <- value

Arguments

x

An VideoStack object.

i

An index specifying the element to extract or replace. Indices are numeric vectors which values are coerced to integer as by as.integer (and hence truncated towards zero) or logical vectors which are recycled if necessary to match the dimensions of the stack.

value

A Video object or a vector of Video objects to replace the Video objects in the stack, or a NULL value to remove the Video objects in the stack.

See also

Author

Simon Garnier, garnier@njit.edu

Examples

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