/**
比平均背景法性能更加良好的方法,codeBook模型实现背景减除
核心代码详细解析和实现 by zcube
doc.guandang.net
*/ /************************************************************************/ /* A few more thoughts on codebook models In general, the codebook method works quite well across a wide number of conditions,
and it is relatively quick to train and to run. It doesn’t deal well with varying patterns of light — such as morning, noon, and evening sunshine — or with someone turning lights on or off indoors. This type of global variability can be taken into account by using
several different codebook models, one for each condition, and then allowing the condition
to control which model is active. */
/************************************************************************/ #include "stdafx.h"
#include <cv.h> #include <highgui.h>
#include <cxcore.h>
#define CHANNELS 3
// 设置处理的图像通道数,要求小于等于图像本身的通道数 /////////////////////////////////////////////////////////////////////////// // 下面为码本码元的数据结构
// 处理图像时每个像素对应一个码本,每个码本中可有若干个码元
// 当涉及一个新领域,通常会遇到一些奇怪的名词,不要被这些名词吓坏,其实思路都是简单的 typedef struct ce { uchar learnHigh[CHANNELS]; // High side threshold for learning
// 此码元各通道的阀值上限(学习界限)
uchar learnLow[CHANNELS]; // Low side threshold for learning
// 此码元各通道的阀值下限
// 学习过程中如果一个新像素各通道值x[i],均有 learnLow[i]<=x[i]<=learnHigh[i],则该像素可合并于此码元
uchar max[CHANNELS]; // High side of box boundary
// 属于此码元的像素中各通道的最大值
uchar min[CHANNELS]; // Low side of box boundary
code_book背景建模法_计算机软件及应用_IT/计算机_专业资料。opencv 源代码cv_yuv_codebook.h 文件: /// /// // Accumulate average and ~std (...
codebook代码实现_计算机软件及应用_IT/计算机_专业资料。前景分割中一个非常重要...();//平均法建模过程 } //Find the foreground if any if(i >= ...
codebook 98页 免费 CGSS2003 codebook 16页 免费 codebook_solution 39页 免费 编码簿 暂无评价 4页 10财富值 codebook建模 代码 10页 2财富值 Codebook Alg...
Real-time foreground–background segmentation using codebook model Kyungnam Kim 报告人:霍东海 参考网络资源 ? Codebook背景建模原理(中文简介) ? 网址: http...
opencv码本(codebook)背景模型_计算机软件及应用_IT/计算机_专业资料。这是openc...codebook建模 代码 10页 1下载券 codebook 50页 免费 codebook算法总结 50页...
使用双层Codebook模型进行实时背景建模与背景减除_计算机软件及应用_IT/计算机_专业资料。原文:Real-time Background Modeling/Subtraction using Two-Layer Codebook Mod...
本文算法 通过引入主成分分析对呈现椭球体分布的背景像素 4期 霍东海等: 一种基于主成分分析的 Codebook 背景建模算法 595 分量, 最后计算出新线性空间下的前景...
使用Codebook模型进行实时前景-背景分割_计算机软件及应用_IT/计算机_专业资料。原文...codebook建模 代码 10页 1下载券 codebook算法总结 50页 2下载券 运动目标检...
采用 Codebook 来建模场景中感兴趣的状态 , 选择 RGB 颜色空间模型 , 学习一个 覆盖组成图 像像素三 个通道上的 Codebook, 可以有效 的解决 像素剧烈变化的...
这 来建模场景中感兴趣的状态 ,选择 RGB 颜色空间模型 ,学习一个覆盖组成图像像素三个通道上的 Codebook,可以有效的解决 像素剧烈变化的问题 ,从而鲁棒探测出场景...
热门文档