opencv2.2中的cvsnakeimage

时间:2011-09-04 05:49:06

标签: c++ opencv

我想将cvsnakeimage函数用于opencv的活动轮廓。

问题是我无法在opencv2.2下找到此功能,名称已更改或有什么问题。 提前谢谢!

1 个答案:

答案 0 :(得分:3)

函数cvSnakeImage驻留在legacy模块中。 (818行opencv2/legacy/legacy.hpp

/* Updates active contour in order to minimize its cummulative
   (internal and external) energy. */
CVAPI(void)  cvSnakeImage( const IplImage* image, CvPoint* points,
                           int  length, float* alpha,
                           float* beta, float* gamma,
                           int coeff_usage, CvSize  win,
                           CvTermCriteria criteria, int calc_gradient CV_DEFAULT(1));