feature的距离度量distance measure

最近看image retrieval相关的论文,feature extraction and description是数据采集与表示的基本步骤,其中总是看到有关feature descriptor生成的环节,诸如提取global/local feature之后,采用k-means 进行quantization,然后计算visual distance,有L1 distance, L2 distance, χ2 distance等,总是没搞明白,于是抽时间查找了下。具体如下:

http://www.ece.neu.edu/groups/rcl/projects/kmeans/distance.html

  • L1 distance (Manhattan distance): The absolute value of the componentwise difference between the pixel and the class. This is the simplest distance to calculate and may be more robust to outliers.      
  • L2 distance (Euclidean distance): The square root of the componentwise square of the difference between the pixel and the class. Since we are only comparing the results, you can omit the square root. Computing the L2 distance requires squaring the data, which introduces extra bits of precision into the data. The squaring operation is expensive in hardware. One advantage of this metric is that the distance is a sphere around the centroid.    

然后,还有个X2 statistics的距离度量法,用来评估两类数据的相关程度,

具体的算法是

根据数据的离散值及其期望进行计算,X2越大,表明数据间相关性越大。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值