Operators acting on VideoStack objects to extract
or replace the Video objects they contain.
Usage
# S3 method for class 'VideoStack'
x[[i]]
# S3 method for class 'VideoStack'
x[[i]] <- value
# S3 method for class 'VideoStack'
x[i]
# S3 method for class 'VideoStack'
x[i] <- valueArguments
- x
An
VideoStackobject.- 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
Videoobject or a vector ofVideoobjects to replace theVideoobjects in the stack, or aNULLvalue to remove theVideoobjects in the stack.
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