Chanvese
Chan-Vese level-sets in Python
Install / Use
/learn @kevin-keraudren/ChanveseREADME
Chan-Vese level-sets in Python
Numpy adaptation of the Chan-Vese level-sets code from creaseg
(http://www.creatis.insa-lyon.fr/~bernard/creaseg/). The relevant file from the
original source code is in the creaseg/ folder.
The code from Burak Bayramli
(http://ascratchpad.blogspot.com/2011/03/image-segmentation-using-active.html)
has been useful when performing this adaptation.
The Chan-Vese level sets model aims at minimizing the energy:

where I is the image, C is the boundary of the segmented region, c_1 and c_2 are the averages of I respectively inside and outside C, and kappa is the curvature of C.
Example
python chanvese.py
Reference
T. Chan and L. Vese. "Active contours without edges". IEEE Transactions on Image Processing. Volume 10, pp. 266-277, February 2001.
Related Skills
node-connect
353.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.7kCreate 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
353.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
