Using pre-determined values this function generates ROI from a video. If parameters are not known, use select_roi() This function is optimized to run in parallel, so should be relatively rapid. If running slowly, check the scratch disk is set correctly.
threshold_apply(
threshold = 0.5,
roi_name = "test",
video_path = "image826.avi",
radians = 0.217604550320612,
xlength = 60,
ylength = 242,
xstart = 696,
ystart = 323,
image_list = NULL,
fps = NULL
)The threshold for the red channel. Range 0-1.
Name assigned to the region of interest
Location of the video file to process
Degrees to rotate the image, in radians
Number of x pixels in the ROI
Number of y pixels in the ROI
ROI starting x co-ordinate
ROI starting y co-ordinate
If pre-computed, a list of images to use rather than a video
Number of fps to process, this can be set lower for validation
Saves the quantified CSV and overlaid video in the same directory as the video