https://github.com/shunk031/calc-center-of-gravity
Calculate binary image's center of gravity
https://github.com/shunk031/calc-center-of-gravity
Last synced: 2 months ago
JSON representation
Calculate binary image's center of gravity
- Host: GitHub
- URL: https://github.com/shunk031/calc-center-of-gravity
- Owner: shunk031
- Created: 2015-10-14T14:21:02.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-15T01:40:14.000Z (almost 10 years ago)
- Last Synced: 2025-01-10T17:53:46.115Z (9 months ago)
- Language: C
- Homepage:
- Size: 215 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Calculate binary image's center of gravity
You simply input binary image, and run this software calculate that center of gravity(CG).## Motivation
At experiment, I want to make sure that my calculated result is correct. So I wrote this code.## Requirement
* Linux OS(Linux Mint 17.1 is OK)
* gcc compiler
* file that you want to calculate CG of binary image(CSV)
## Usage1. Clone this repository.
2. Change directory that you cloned this repository.
3. Put the CSV data into directory.
4. Compile code.~~~~
$ gcc calcCenterOfGravity.c
~~~~
5. Run code with command line argument.
~~~~
$ ./a.out filename.csv
~~~~## Example
## License
This code is free software; you can redistribute it and/or modify it.