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] <- 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 ofVideo
objects to replace theVideo
objects in the stack, or aNULL
value to remove theVideo
objects 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