All Packages Class Hierarchy This Package Previous Next Index
Class feature.Snake
java.lang.Object
|
+----feature.Snake
- public class Snake
- extends Object
Realization of snake algorithm
- Author:
- Di Zhong (Columbia University)
-
Snake(int, float, float)
- Construct a snake object with certain properties
-
snake(XPolygon, float[][])
- Snake a user input region to edge points.
Snake
public Snake(int n,
float a,
float th)
- Construct a snake object with certain properties
- Parameters:
- n - iterate snake algorithm n times
- a - weight for external force (usually 0 to 3)
- th - threshod to get binary mask (~128)
snake
public float[][] snake(XPolygon region,
float b[][])
- Snake a user input region to edge points. Return a 2D masking array where pixels inside the region are set to 255, pixels outside the region are set to 0.
- Parameters:
- region - orginal polygon region to be snaked
- b - intensity image
All Packages Class Hierarchy This Package Previous Next Index