I am analyzing multiple 15min videos, but sometimes the recordings are longer. I know that I could delete (end=X) the final frames, but since the videos do not have the same number of extra frames, I would like to know how I can select the first 9000 frames? I am using the pipeline function below:
I am analyzing multiple 15min videos, but sometimes the recordings are longer. I know that I could delete (end=X) the final frames, but since the videos do not have the same number of extra frames, I would like to know how I can select the first 9000 frames? I am using the pipeline function below:
pipeline <- function(path){ Tracking <- ReadDLCDataFromCSV(path, fps = 10) Tracking <- CalibrateTrackingData(Tracking, method = "area", in.metric = 46*46, points = c("topleftcorner", "toprightcorner", "bottomrightcorner", "bottomleftcorner")) Tracking <- CleanTrackingData(Tracking, likelihoodcutoff = 0.95) Tracking <- CutTrackingData(Tracking, ????) Tracking <- AddOFTZones(Tracking, scale_center = 0.5, scale_periphery = 0.8, scale_corners = 0.4, points = c("topleftcorner", "toprightcorner", "bottomrightcorner", "bottomleftcorner")) Tracking <- OFTAnalysis(Tracking, movement_cutoff = 5, integration_period = 5, points = "head") return(Tracking) }