opencv for iOS:cvHoughCircles在iPhone和模拟器上的结果不同

opencv for iOS:cvHoughCircles在iPhone和模拟器上的结果不同,ios,opencv,Ios,Opencv,我对iOS的Opencv库有一个问题。当使用cvHoughCircles时,模拟器上的结果与iPhone不同。这是密码 CvSeq*circles=cvHoughCircles(灰色,//输入图像 storage, //Memory Storage CV_HOUGH_GRADIENT, //Detection method

我对iOS的Opencv库有一个问题。当使用
cvHoughCircles
时,模拟器上的结果与iPhone不同。这是密码

CvSeq*circles=cvHoughCircles(灰色,//输入图像

                               storage, //Memory Storage
                               CV_HOUGH_GRADIENT, //Detection method
                               2, //Inverse ratio
                               gray->width/8, //Minimum distance between the centers of the detected circles
                               100, //Higher threshold for canny edge detector
                               20, //Threshold at the center detection stage
                               gray->height/6, //min radius
                               gray->height/2 //max radius
                               );
circles->total
=0在模拟器上,但在iPhone上为1。这是图片


非常感谢您的帮助。

如果您在模拟器上,是否使用与在设备上不同的方式获取Mat灰色对象?否。相同的方式。我已经认识到,在裁剪iplImage时,图像向右移动了4或5个像素(在模拟器上)。