Skip to content

Instantly share code, notes, and snippets.

@rbnvrw
Last active March 10, 2020 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbnvrw/627f19e9c71ce59f605dd4f42c3f08b1 to your computer and use it in GitHub Desktop.
Save rbnvrw/627f19e9c71ce59f605dd4f42c3f08b1 to your computer and use it in GitHub Desktop.
Annotate, convert, crop, speed-up, scalebar overlay of an ND2 movie

See the Python notebook for the code. If you scroll down all the way down, you see an example of the last frame in a tracked, cropped and sped-up video. Features:

  • Convert an ND2 movie into avi/mp4/mov/wmv format
  • Add a scalebar of your choice to the movie
  • Speed-up the movie by a certain factor
  • With a csv file containing (frame,x,y,r,particle) columns: overlay the trajectories, particle number, circle of tracked radius

Settings can be changed in the settings block. Be sure to also include the arial.ttf or any other font of your choice in the same directory.

If you make improvements to the program, please leave a comment here, so I can update it.

Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment