Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nogates/counting-semaphore
Simple tool to quantify pixel number based on image color channel for scientific purpose
https://github.com/nogates/counting-semaphore
Last synced: 9 days ago
JSON representation
Simple tool to quantify pixel number based on image color channel for scientific purpose
- Host: GitHub
- URL: https://github.com/nogates/counting-semaphore
- Owner: nogates
- License: gpl-2.0
- Created: 2015-05-15T08:13:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-17T10:28:33.000Z (over 9 years ago)
- Last Synced: 2023-08-06T06:38:37.641Z (over 1 year ago)
- Language: Ruby
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# counting-semaphore
## What is it?
Counting Semaphore is a simple tool to quantify pixel number based on image color channel for scientific purpose.
It uses rmagick to extract the RGB channels from the images and then, counts the number of non black pixels on each image.
By default, a pixel is considered to be a non black if its strengh is 25 or above (using the RGB color namespace), but it can be configured in each run.
## How to use it
- Clone or download the repo
- Run `bundle install` or install rmagick manually.
- Run `bin/counting-semaphore `
- A csv file will be generated with the information of each image.## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request## License
See [LICENSE](https://raw.githubusercontent.com/nogates/counting-semaphore/master/LICENSE).