Skip to content

OCVL/animal_processing

Repository files navigation

animal_processing

Repository for all the needed for the preprocessing of the obtained animal AOSLO data.

To operate, run the animal_processing_pipeline.py script which performs the following operations:

  1. Asks for the directory where the data to be preprocessed is located
  2. Asks for the number of frames that are in all video
  3. Asks for the imaging session date
  4. Aks if the data contains iORG data
  5. Aks for the location of the video locations csv file
  6. For each file name:
    • The modality is determined and modified compatibility with the BMC registration software
    • The binary file is convered to an array in the row, col, number frames orintation
    • The video data array is desinusoided using the grid matrix file generated
    • Using the rename information, the video is writen to a BMC compatiple format
  7. After renameing the split detector and dark field videos are generated
  8. If the dataset contains iORG data, the stimulus presentation will be aligned throughout the dataset
    • All visible modality videos are found to find when the stimulus was presented
    • The frames that comprise the pre, post, and during stimulus presentation and the video condition (control/stim) are found for all videos and writen to a csv
    • All modalities undergo stimulus alignment and cropping using the minimum of the pre stimulus presentation to align the frame in which the stimulus is presented throughout the dataset
      • All video are saved into a folder called "Stim_Aligned"

About

Repository for all the needed animal processing scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages