get_raw_optflow_view {movementsync}R Documentation

Creates time reference and displacement from raw csv optflow data

Description

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.

See Also

Other data functions: apply_filter_sgolay(), get_data_points(), get_duration_annotation_data(), get_feature_data(), get_filtered_views(), get_joined_view(), get_metre_data(), get_onsets_selected_data(), get_processed_views(), get_processed_view(), get_raw_views(), get_raw_view(), get_recording(), get_sample_recording()

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)

[Package movementsync version 0.1.4 Index]