/n-body-opencv

A Visualisation of N-body Gravitational body system in OpenCV using C++ and OpenMP parallelization

Primary LanguageC++MIT LicenseMIT

N-body simulation in OpenCV

A visualisation of N-body physics in C++ using OpenCV library to visualise particles and their interactions.

Getting Started

  • Clone the repo into your folder

    git clone https://github.com/sanjeev309/n-body-opencv.git

  • Make changes if any to main.cpp

  • Execute make command to compile into an executable

    make compile

  • Run the executable

    ./n_body_opencv

  • Clean for a rebuild

    make clean

Prerequisites

OpenCV 3.2 installation and header files.

Demonstration

N_body Simulation

Built With

  • OpenCV - The Computer Vision Library

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments