Changes contour position to minimize its energy
Namespace: OpenCvSharp
Assembly: OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public void SnakeImage( CvPoint[] points, float alpha, float beta, float gamma, CvSize win, CvTermCriteria criteria, bool calcGradient )
Parameters
- points
- Type: OpenCvSharpCvPoint
Contour points (snake). - alpha
- Type: SystemSingle
Weight of continuity energy, single float or array of length floats, one per each contour point. - beta
- Type: SystemSingle
Weight of curvature energy, similar to alpha. - gamma
- Type: SystemSingle
Weight of image energy, similar to alpha. - win
- Type: OpenCvSharpCvSize
Size of neighborhood of every point used to search the minimum, both win.width and win.height must be odd. - criteria
- Type: OpenCvSharpCvTermCriteria
Termination criteria. - calcGradient
- Type: SystemBoolean
Gradient flag. If true, 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