Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BlockoS/blob
Single header implementation of "A linear-time component-labeling algorithm using contour tracing technique" by Fu Chang, Chun-Jen Chen, and Chi-Jen Lu.
https://github.com/BlockoS/blob
Last synced: 6 days ago
JSON representation
Single header implementation of "A linear-time component-labeling algorithm using contour tracing technique" by Fu Chang, Chun-Jen Chen, and Chi-Jen Lu.
- Host: GitHub
- URL: https://github.com/BlockoS/blob
- Owner: BlockoS
- License: mit
- Created: 2016-07-28T12:22:53.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-03-23T17:34:01.000Z (8 months ago)
- Last Synced: 2024-04-13T03:57:48.470Z (7 months ago)
- Language: C++
- Size: 187 KB
- Stars: 53
- Watchers: 7
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-game-engine-dev - Blob - Single-header implementation of a contour tracing algorithm. (Libraries / C)
README
# blob - a 8-neighbour connected components labelling and contours extractor.
See [blob.h](blob.h) for a complete documentation.
## Reference ##
"A linear-time component-labeling algorithm using contour tracing technique"
by Fu Chang, Chun-Jen Chen, and Chi-Jen Lu.## Example ##
The [test](test) directory contains the source code of a small program that generates an image of the label buffer as long as a JSON file and a GNUplot data file containing the set of extracted contours.#### source
#### label
#### contours
Image reading and writing libraries [stb_image.h, stb_image_write.h](https://github.com/nothings/stb/) by Sean Barrett (public domain).
## Build ##
A CMake configuration file is provided in order to build a static library and the associated documentation.
A typical usage of CMake may be:
```bash
mkdir build
cd build
cmake ..
cmake --build .
```
On a Linux system, the Makefile will generate a static library `libblob.a`.`cmake --build . --target doc` will generate the documentation with [DoxyGen](http://www.stack.nl/~dimitri/doxygen/).
## License ##
`blob` is licensed under the MIT License, see the [LICENSE](LICENSE) file for more information.