Skip to contents

Retrieve or set the index of the frame to be read next in a Video, VideoStack or Queue object.

Usage

# S3 method for class 'Rcpp_Queue'
frame(x)

# S3 method for class 'Rcpp_Video'
frame(x)

# S3 method for class 'Rcpp_Video'
frame(x) <- value

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

# S3 method for class 'VideoStack'
frame(x) <- value

frame(x)

frame(x) <- value

Arguments

x

A Video, VideoStack or Queue object.

value

The index of the frame to be read next.

Value

A numeric value or `x` with a new head position.

Note

Frame index starts at 1 (i.e. the first image has index 1).

See also

Author

Simon Garnier, garnier@njit.edu

Examples

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