在iOS中使用cvSnakeImage的麻烦

时间:2014-08-30 13:08:25

标签: ios opencv

- (UIImage*) snake:(UIImage *)processingImage :(UIImageView *)contourImage{
CvMat cvMatImage = [processingImage CVGrayscaleMat];
cv::Mat cvMatImage2 = &cvMatImage;
IplImage copy = cvMatImage2;
IplImage* snakeImage = ©

cvThreshold(snakeImage, snakeImage, 170, 255, CV_THRESH_BINARY);

float alpha = 0.1;
float beta = 0.5;
float gamma = 0.4;

CvSize size;
size.width = 5;
size.height = 5;

CvTermCriteria criteria;
criteria.type = CV_TERMCRIT_ITER;
criteria.max_iter = 10000;
criteria.epsilon = 0.1;
CvPoint temp;
std::vector<cv::Point> snakeCurve;
cvSnakeImage(snakeImage, temp, 40, 0.1, 0.5, 0.4, CV_VALUE, size, criteria);

}

我已经放了#include。当我输入cvsnakeimage时,弹出的帮助显示了该功能。但是,当我完成时,它显示没有函数匹配来调用... balabala ....

提前致谢!

0 个答案:

没有答案