sub-.VideoStack: Extract or Replace Videos in Video Stacks

[[.VideoStackR Documentation

Extract or Replace Videos in Video Stacks

Description

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

Usage

## S3 method for class 'VideoStack'
x[[i]]

## S3 replacement method for class 'VideoStack'
x[[i]] <- value

## S3 method for class 'VideoStack'
x[i]

## S3 replacement 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 of Video objects to replace the Video objects in the stack, or a NULL value to remove the Video objects in the stack.

Author(s)

Simon Garnier, garnier@njit.edu

See Also

VideoStack, Video

Examples

path <- system.file("sample_vid/Balloon.mp4", package = "Rvision")
vid <- video(path)
balloonStack <- videoStack(path)
balloonStack[[2]] <- vid


swarm-lab/Rvision documentation built on Feb. 7, 2024, 4:59 a.m.