Color Names 特征提取并进行PCA降维 (Learning Color Names for Real-World Applications)

Color Names 特征提取并进行PCA降维 (Learning Color Names for Real-World Applications)

之前的一篇博客里介绍了CN特征的提取,在实际应用中,很多算法为了提高计算效率,都会将CN特征进行降维,比如

Danelljan M, Shahbaz Khan F, Felsberg M, et al. Adaptive color attributes for real-time visual
tracking[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. 2014: 1090-1097

即ColorTracking跟踪算法就采用了PCA降维,将CN特征降为了2维。

这里就在上一篇的基础上加上PCA降维的部分:

首先是改动一下im2c.m函数

im2c.m

function out=im2c(im,w2c,color)
% input im should be DOUBLE !
% color=0 is color names out
% color=-1 is colored image with color names out
% color=1-11 is prob of colorname=color out;

% order of color names: black , blue , brown     , grey     , green , orange  ,  pink   , purple  ,  red     , white    , yellow
color_values =     {
     [0 0 0] , [0 0 1] , [.5 .4 .25] , [.5 .5 .5] , [0 1 0] , [1 .8 0] , [1 .5 1] , [1 0 1] , [1 0 0] , [
  • 2
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值