xf::cv::fast

FAST 角点检测
FAST(Features from accelerated segment test)是一种角点检测算法,它比大多数其他的特征检测器都要快。

该FAST函数在图像中选取一个像素,并将其附近的16个像素在一个圆上的强度进行比较,这个圆被称为布Bresenham圆。如果通过给定的阈值发现9个相邻像素的强度大于或小于候选像素的强度,则将该像素声明为角。检测到角点后,采用非最大抑制法去除较弱的角点。

这个函数可以用于静态图像和视频。角点在图像中被标记。如果在某个位置找到角点,那么该位置将标记为255,否则为0。

API Syntax

template<int NMS,int SRC_T,int ROWS, int COLS,int NPC=1>
void fast(xf::Mat<SRC_T, ROWS, COLS, NPC> & _src_mat,xf::Mat<SRC_T, ROWS, COLS, NPC> & _dst_mat,unsigned char _threshold)

Parameter Descriptions

NMS: If NMS == 1, non-maximum suppression is applied to detected corners (keypoints). The value should be 0 or 1.
SRC_T: Input pixel type. Only 8-bit, unsigned, 1-channel is supported (XF_8UC1)
ROWS:Maximum height of input image.
COLS:Maximum width of input image (must be a multiple of 8, for 8-pixel operation)
NPC:Number of pixels to be processed per cycle; possible options are XF_NPPC1 and XF_NPPC8 for 1 pixel and 8 pixel operations respectively.
_src_mat:Input image
_dst_mat:Output image. The corners are marked in the image.
_threshold:Threshold on the intensity difference between the center pixel and its neighbors. Usually it is taken around 20.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值