Coder Social home page Coder Social logo

slieped / slowest-particle-simulator-on-earth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ofgulban/slowest-particle-simulator-on-earth

0.0 1.0 0.0 29.16 MB

A half-serious project to generate **very** serious brain explosions.

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

slowest-particle-simulator-on-earth's Introduction

Slowest particle simulator on earth

Just a fun project to learn about particle simulations. Developed for applying particle physics to magnetic resonance images (nifti file format).

Dependencies

Python 3

Package Tested version
NumPy 1.17.2
Matplotlib 3.1.1
Nibabel 2.2.1

Installation

pip install slowest_particle_simulator_on_earth

Usage

Type the following command on your command line:

slowest_particle_simulator_on_earth /path/to/image.nii.gz --slice_number 3 --thr_min 200 --thr_max 500

Note: You can select different slice numbers. For now the slices can only be chosen on one axis. I am going to make this more flexible later.

Making a gif

slowest_particle_simulator_on_earth creates individual pictures which can be compiled into an animated gif. I use the following command (on linux) to convert the frames into animated gifs:

convert -delay 1 -loop 0 /path/to/export/*.png out.gif

You can change -delay parameter to make your gif faster or slower.

Alternatively, you can also create a movie rather than a gif:

ffmpeg -r 30 -i /path/to/export/frame_%03d.png -pix_fmt yuv420p -r 30 out.mp4

Support

Please use GitHub issues for questions, bug reports or feature requests.

License

This project is licensed under BSD-3-Clause.

slowest-particle-simulator-on-earth's People

Contributors

ofgulban avatar r03ert0 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.