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.10.1935 (2.4.10.1935)

Syntax

C#
public static void cvSnakeImage(
	IntPtr image,
	IntPtr points,
	int length,
	float[] alpha,
	float[] beta,
	float[] gamma,
	int coeffUsage,
	Size win,
	MCvTermCriteria criteria,
	int calcGradient
)
Visual Basic
Public Shared Sub cvSnakeImage ( 
	image As IntPtr,
	points As IntPtr,
	length As Integer,
	alpha As Single(),
	beta As Single(),
	gamma As Single(),
	coeffUsage As Integer,
	win As Size,
	criteria As MCvTermCriteria,
	calcGradient As Integer
)
Visual C++
public:
static void cvSnakeImage(
	IntPtr image, 
	IntPtr points, 
	int length, 
	array<float>^ alpha, 
	array<float>^ beta, 
	array<float>^ gamma, 
	int coeffUsage, 
	Size win, 
	MCvTermCriteria criteria, 
	int calcGradient
)
F#
static member cvSnakeImage : 
        image : IntPtr * 
        points : IntPtr * 
        length : int * 
        alpha : float32[] * 
        beta : float32[] * 
        gamma : float32[] * 
        coeffUsage : int * 
        win : Size * 
        criteria : MCvTermCriteria * 
        calcGradient : int -> unit 

Parameters

image
Type: System..::..IntPtr
The source image or external energy field
points
Type: System..::..IntPtr
Seq points (snake).
length
Type: System..::..Int32
Number of points in the contour
alpha
Type: array<System..::..Single>[]()[][]
Weight[s] of continuity energy, single float or array of length floats, one per each contour point
beta
Type: array<System..::..Single>[]()[][]
Weight[s] of curvature energy, similar to alpha
gamma
Type: array<System..::..Single>[]()[][]
Weight[s] of image energy, similar to alpha
coeffUsage
Type: System..::..Int32
Variant of usage of the previous three parameters: CV_VALUE indicates that each of alpha, beta, gamma is a pointer to a single value to be used for all points; CV_ARRAY indicates that each of alpha, beta, gamma is a pointer to an array of coefficients different for all the points of the snake. All the arrays must have the size equal to the contour size.
win
Type: System.Drawing..::..Size
Size of neighborhood of every point used to search the minimum, both win.width and win.height must be odd
criteria
Type: Emgu.CV.Structure..::..MCvTermCriteria
Termination criteria
calcGradient
Type: System..::..Int32
Gradient flag. If != 0, the function calculates gradient magnitude for every image pixel and consideres it as the energy field, otherwise the input image itself is considered

See Also