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: 12 months 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 9 years ago)
- Default Branch: main
- Last Pushed: 2024-03-23T17:34:01.000Z (almost 2 years ago)
- Last Synced: 2024-11-02T18:41:13.614Z (over 1 year ago)
- Language: C++
- Size: 187 KB
- Stars: 55
- Watchers: 7
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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.