Description Usage Arguments Value See Also Examples
We plot a specified frame of the processed video, which results from Step 0 of SCALPEL, with shading to indicate values above a specified threshold.
| 1 2 3 4 5 6 7 8 9 10 | 
| scalpelOutput | An object returned by one of the SCALPEL functions:
 | 
| frame | The frame to plot. | 
| threshold | Value above which pixels will be shaded. | 
| shrinkLargest | Logical value indicating whether the values above  | 
| shrinkCutoff | The value above which pixel values will be shrunk. By default, this will be chosen as
 | 
| title | Label for the title. By default, it gives the threshold value. | 
| col | Color of shading to use, which is yellow by default. | 
| Y | An object of class  | 
None
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## 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
#simplest example with default parameters:
plotThresholdedFrame(scalpelOutput = scalpelOutput, frame = 100,
                    threshold = scalpelOutput$thresholdVec[1])
#example with optional parameters:
#change shading to purple and add a title
plotThresholdedFrame(scalpelOutput = scalpelOutput, frame = 100, col = "purple",
                   threshold = scalpelOutput$thresholdVec[2])
#if you have video data read in already using 'getY' function, you can provide it
processedY = getY(scalpelOutput = scalpelOutput, videoType = "processed")
plotThresholdedFrame(scalpelOutput = scalpelOutput, frame = 100,
                    threshold = scalpelOutput$thresholdVec[1], Y = processedY)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.