cvFindCornerSubPix亚像素角点寻找函数

在摄像机标定时也需要用到亚像素角点寻找函数。

函数 cvFindCornerSubPix 通过迭代来发现具有子象素精度的角点位置,或放射鞍点(radial saddle points)。

原型如下:

void cvFindCornerSubPix( const CvArr* image, CvPoint2D32f* corners,
                         int count, CvSize win, CvSize zero_zone,
                         CvTermCriteria criteria );
参数: image   IntPtr Input image
           corners array< Single ,             2>[,](,)[,] Initial coordinates of the input corners and refined coordinates on output
           count    Int32  Number of corners
          win   Size
    Half sizes of the search window. For example, if win=(5,5) then 5*2+1 x 5*2+1 = 11 x 11 search window is used
         zeroZone  Size 
      Half size of the dead region in the middle of the search zone overwhich the summation in formulae below is not done. It is used sometimesto avoid possible singularities of the autocorrelation matrix. Thevalue of (-1,-1) indicates that there is no such size
       criteria MCvTermCriteria
        Criteria for termination of the iterative process of corner refinement.That is, the process of corner position refinement stops either aftercertain number of iteration or when a required accuracy is achieved.The criteria may specify either of or both the maximum number ofiteration and the required accuracy
例:
cvFindCornerSubPix(srcImage,corners,cornerCount,cvSize(11,11),cvSize(-1,-1), 
  cvTermCriteria(CV_TERMCRIT_ITER|CV_TERMCRIT_EPS,40,0.01));  
其中srcImage必须为单通道,深度为IPL_DEPTH_8U。否则报错。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值