phasedchirp / ultrasound-processing

processing scripts/docs for ultrasound data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ultrasound-processing

This repository contains several processing scripts/documentation for ultrasound data

###Contents:

  • extractaudio.py is used for batch processing audio extraction from ultrasound video.
  • extractframes.py is used for batch-processing frame extraction from ultrasound video.
  • conconcatenate.py concatenates .con files generated by Edgetrak
  • ffmpeg_install_mac.sh installer script to automat getting and installing ffmpeg on Macs

The scripts extractframes.py and extractaudio.py assume that you have python and ffmpeg installed on your computer.

  • Windows installation instructions
  • To install on a Mac:
    • Download
    • extract from the zip file and re-name the folder ffmpeg
    • Place the ffmpeg directory somewhere your computer can find it. One option is moving the ffmpeg directory to /usr/local/bin which you can do by running sudo cp -r path/to/ffmpeg /usr/local/bin/ffmpeg in terminal.
  • Alternative Mac installation (may be buggy): run the installer scrip included in this repository. Done by running the command sh ffmpeg_install_mac.sh in terminal from whatever directory you've got the script in. This will automatically download and move files around for you. It will ask for a password while running.

concontateate.py works with the output of Edgetrak. It assumes a particular file-naming convention for the .con files which is as follows:
SUBJECT_REPETITION_WORD_FRAME
where WORD may contain extra underscores

About

processing scripts/docs for ultrasound data

License:GNU General Public License v2.0


Languages

Language:Python 69.5%Language:MATLAB 27.1%Language:Shell 3.5%