readFrame.Rcpp_Video | R Documentation |
Read a specific frame of a Video
or
VideoStack
object and returns it as an Image
object.
## S3 method for class 'Rcpp_Video'
readFrame(x, pos, target = "new")
## S3 method for class 'VideoStack'
readFrame(x, pos, target = "new")
readFrame(x, pos, target = "new")
x |
A |
pos |
An integer corresponding to the position of the frame to read in the video or video stack. |
target |
The location where the results should be stored. It can take 2 values:
|
If target="new"
, the function returns an Image
object. If target
is an Image
object, the function
returns nothing and modifies that Image
object in place.
Simon Garnier, garnier@njit.edu
Video
, VideoStack
, Image
,
readNext
balloon <- video(system.file("sample_vid/Balloon.mp4", package = "Rvision"))
frame10 <- readFrame(balloon, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.