粒子滤波直方图
来源:互联网 发布:淘宝无线端其他来源 编辑:程序博客网 时间:2024/06/08 10:16
/* increment appropriate histogram bin for each pixel */ for( r = 0; r < img->height; r++ ) for( c = 0; c < img->width; c++ ) { bin = histo_bin( /*pixval32f( h, r, c )*/((float*)(h->imageData + h->widthStep*r) )[c], ((float*)(s->imageData + s->widthStep*r) )[c], ((float*)(v->imageData + v->widthStep*r) )[c] ); hist[bin] += 1; }
/* Calculates the histogram bin into which an HSV entry falls @param h Hue @param s Saturation @param v Value @return Returns the bin index corresponding to the HSV color defined by \a h, \a s, and \a v.*/int histo_bin( float h, float s, float v ){ int hd, sd, vd; /* if S or V is less than its threshold, return a "colorless" bin */ vd = MIN( (int)(v * NV / V_MAX), NV-1 ); if( s < S_THRESH || v < V_THRESH ) return NH * NS + vd; /* otherwise determine "colorful" bin */ hd = MIN( (int)(h * NH / H_MAX), NH-1 ); sd = MIN( (int)(s * NS / S_MAX), NS-1 ); return sd * NH + hd;}
0 0
- 粒子滤波直方图
- 基于颜色直方图的粒子滤波目标跟踪MATLAB实现
- 粒子滤波
- 粒子滤波
- 粒子滤波
- 粒子滤波
- 粒子滤波
- 粒子滤波
- 粒子滤波
- 粒子滤波
- 粒子滤波
- 粒子滤波
- 粒子滤波
- 粒子滤波
- 粒子滤波
- 粒子滤波
- 粒子滤波
- 粒子滤波
- 【HDU】2157 - How many ways??(矩阵快速幂)(从i到j经过k个点有多少种走法)
- 解决android帮助文档打开慢
- js实现页面埋点
- Mysql远程不允许连接(Windows)
- Android Telephony分析(三) ---- RILJ详解
- 粒子滤波直方图
- 二叉树以及 二叉树的C++实现
- ios获取当前时间年月日时分秒
- 智能指针scoped_refptr
- 微信登录出现的问题及解决方案
- C# ListView用法详解 很完整
- 二叉树、平衡二叉树、完全二叉树、满二叉树
- 使用Scenes和Transitions实现View动画
- GitHub for Windows 安装失败,An error occurred attempting to install github 的解决办法