getY {scalpel} | R Documentation |
Read in Y matrix for SCALPEL.
Description
This step allows the user to read in Y, the matrix of raw or processed video data, to use with several plotting functions.
Usage
getY(scalpelOutput, videoType = "processed", part = NULL)
Arguments
scalpelOutput |
An object returned by one of the SCALPEL functions:
|
videoType |
Specify whether to read in the processed data from Step 0 (default; |
part |
The part of the video to read in, if it is split across multiple files. The default is NULL, which means that all parts will be read in and combined. |
Value
An object of class scalpelY
that can be provided as the Y
argument in plotFrame
,
plotVideoVariance
, plotBrightest
, plotThresholdedFrame
, and plotCandidateFrame
.
If would like to call these functions many times, this avoids reading the video into memory repeatedly.
Examples
## Not run:
### many of the functions in this package are interconnected so the
### easiest way to learn to use the package is by working through the vignette,
### which is available at ajpete.com/software
#assumes you have run the example for the "scalpel" function
#read in the raw data
rawY = getY(scalpelOutput = scalpelOutput, videoType = "raw")
#read in the processed data from Step 0
processedY = getY(scalpelOutput = scalpelOutput, videoType = "processed")
## End(Not run)