ConcaveHull
A simple program for drawing and visualizing alpha shapes in images.
Install / Use
/learn @Ali2500/ConcaveHullREADME
ConcaveHull
A simple program for drawing and visualizing alpha shapes in images. This is done by performing Delaunay triangulation on the vertices and discarding edges based on the value of alpha. In a nutshell, the method described here is implmented with some alterations: https://stackoverflow.com/questions/23073170/calculate-bounding-polygon-of-alpha-shape-from-the-delaunay-triangulation.
To give a top level description, the lower the value of alpha, the more tightly the drawn shape will hug the edges between the vertices. As alpha is increased, the drawn shape(s) will become more and more convex. For very high alpha, the resulting shape will be equivalent to the convex hull of the provided points.
Build Guide
Just like a typical cmake package. Clone the repository into a directory, cd into it, and then run the following commands in the specified order:
mkdir build
cd build
cmake ..
make
If the preqrequisite libraries (OpenCV and Boost) are installed, the make command should generate an executable in the build directory.
Usage Guide
Refer to launch options description by running 'ConcaveHull --help'.
NOTE: Shape filling isn't correctly implemented yet. It's a hacky implementation that only successfully colors the interior of shapes when there are one more vertices 'inside' of it.
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
