Skip to contents

Used to load OptFlow data.

Usage

get_raw_optflow_view(
  recording,
  vid,
  direct,
  inst,
  folder_out = tempdir(),
  save_output = FALSE,
  filetype = "rda",
  verbose = FALSE
)

Arguments

recording

Recording object.

vid

camera.

direct

direction.

inst

instrument.

folder_out

output folder relative to recording home (default is 'tempdir()').

save_output

save the output?

filetype

type of file ('rda' as default), can be 'csv'.

verbose

messages the specific data loaded (default is 'FALSE').

Value

an OptFlowView object.

Examples

r <- get_recording("NIR_ABh_Puriya", fps = 25)
rov <- get_raw_optflow_view(r, "Central" ,"", "Sitar")
pov <- get_processed_view(rov)
fv1 <- apply_filter_sgolay(pov, c("Head"), n=19, p=4)
autoplot(fv1)
#> Warning: Sampling rows for plotting