threshold_apply: Threshold a video with pre-determined parameters

Description Usage Arguments Value

View source: R/multiple_processing_threshold_v3.R

Description

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.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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
)

Arguments

threshold

The threshold for the red channel. Range 0-1.

roi_name

Name assigned to the region of interest

video_path

Location of the video file to process

radians

Degrees to rotate the image, in radians

xlength

Number of x pixels in the ROI

ylength

Number of y pixels in the ROI

xstart

ROI starting x co-ordinate

ystart

ROI starting y co-ordinate

image_list

If pre-computed, a list of images to use rather than a video

fps

Number of fps to process, this can be set lower for validation

Value

Saves the quantified CSV and overlaid video in the same directory as the video


vmeasur documentation built on Nov. 12, 2021, 1:07 a.m.