Introduction - If you have any usage issues, please Google them yourself
First set the threshold segmentation, find out the basic outline, blue contour lines in Figure, and then contour points incoming cvSnakeImage function to calculate the green snake contour.
Where the parameter alpha representative points closer to each other weights (0-1.0), beta represents the bending energy (smaller and more easily bent) (0-1.0), gamma represents the total energy (0-1.0). I am not sure where the parameters specific range, best to try to change their different ranges.