http://www.emgu.com
Updates snake in order to minimize its total energy that is a sum of internal energy that depends on contour shape (the smoother contour is, the smaller internal energy is) and external energy that depends on the energy field and reaches minimum at the local energy extremums that correspond to the image edges in case of image gradient.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.2.1777 (2.4.2.1777)

Syntax

C#
public void Snake(
	Point[] contour,
	float alpha,
	float beta,
	float gamma,
	Size windowSize,
	MCvTermCriteria tc,
	bool calculateGradiant
)
Visual Basic
Public Sub Snake ( _
	contour As Point(), _
	alpha As Single, _
	beta As Single, _
	gamma As Single, _
	windowSize As Size, _
	tc As MCvTermCriteria, _
	calculateGradiant As Boolean _
)
Visual C++
public:
void Snake(
	array<Point>^ contour, 
	float alpha, 
	float beta, 
	float gamma, 
	Size windowSize, 
	MCvTermCriteria tc, 
	bool calculateGradiant
)

Parameters

contour
Type: array<System.Drawing..::..Point>[]()[][]
Some existing contour. It's value will be update by this function
alpha
Type: System..::..Single
Weight[s] of continuity energy, single float or array of length floats, one per each contour point
beta
Type: System..::..Single
Weight[s] of curvature energy, similar to alpha.
gamma
Type: System..::..Single
Weight[s] of image energy, similar to alpha.
windowSize
Type: System.Drawing..::..Size
Size of neighborhood of every point used to search the minimum, both win.width and win.height must be odd
tc
Type: Emgu.CV.Structure..::..MCvTermCriteria
Termination criteria. The parameter criteria.epsilon is used to define the minimal number of points that must be moved during any iteration to keep the iteration process running. If at some iteration the number of moved points is less than criteria.epsilon or the function performed criteria.max_iter iterations, the function terminates.
calculateGradiant
Type: System..::..Boolean
If true, the function calculates gradient magnitude for every image pixel and considers it as the energy field, otherwise the input image itself is considered

See Also