CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - snake opencv example
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - snake opencv example - List
[
Special Effects
]
snake
DL : 0
用opencv实现的用snake求物体边缘的例子。执行时先框住一个物体,然后就根据snake算法求最小能量曲线,即得到物体的边缘。框子越接近物体,效果越好。 运行需要opencv库。在VS2005下做的。-Opencv realize with the use of snake for example the edge of objects. When the first live implementation of an object box, and then snake algorithm based on minimum energy demand curve, that is to be the edge of objects. Framed and the closer objects, the better. Opencv library needed for the operation. In VS2005 to do the next.
Date
: 2025-07-09
Size
: 4.44mb
User
:
cwl
[
Graph program
]
Snakecontourexample
DL : 0
opencv例子里没有提供cvsnakeimage的使用方法,在此整理一个例子,可以形象的看看snake算法的结果,大致做法是:-opencv example does not provide cvsnakeimage way to use an example in this order, you can see the image of the snake algorithm results, generally the practice is:
Date
: 2025-07-09
Size
: 28kb
User
:
超
[
OpenCV
]
SnakeProfile
DL : 0
opencv例子里没有提供cvsnakeimage的使用方法,在此整理一个例子,可以形象的看看snake算法的结果,大致做法是: 首先设定域值分割,把基本的轮廓找出来,见图中蓝色轮廓线,再将轮廓点传入cvSnakeImage函数,计算出绿色的snake轮廓线。 其中参数alpha代表点相互靠拢的权值(0-1.0),beta表示弯曲能量(越小越容易弯曲)(0-1.0),gamma表示整体能量(0-1.0)。其中参数我自己也不确定具体的范围,最好自己更改不同的范围试试. -opencv example does not provide cvsnakeimage way to use an example in this order, you can see the image of the results of snake algorithm, roughly approach is: first to set the threshold segmentation, the basic outline to find out, the blue outline of Figure line, then passed cvSnakeImage function of contour points to calculate the green snake contour. Parameter alpha which each representative point to move closer to the weight (0-1.0), beta that bending energy (the smaller the easier bending) (0-1.0), gamma that the overall energy (0-1.0). I am not sure which specific parameters of the scope, it is best to try different areas to change their own.
Date
: 2025-07-09
Size
: 1kb
User
:
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.