文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > 计算机软件及应用 > 平均背景建模法
侵权投诉

平均背景建模法

learn opencv 平均背景法源代码

avg_background.h文件:

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// Accumulate average and ~std (really absolute difference) image and use this to detect background and foreground

//

// Typical way of using this is to:

// AllocateImages();

////loop for N images to accumulate background differences

// accumulateBackground();

////When done, turn this into our avg and std model with high and low bounds

// createModelsfromStats();

////Then use the function to return background in a mask (255 == foreground, 0 == background) // backgroundDiff(IplImage *I,IplImage *Imask, int num);

////Then tune the high and low difference from average image background acceptance thresholds

// float scalehigh,scalelow; //Set these, defaults are 7 and 6. Note: scalelow is how many average differences below average

// scaleHigh(scalehigh);

// scaleLow(scalelow);

////That is, change the scale high and low bounds for what should be background to make it work.

////Then continue detecting foreground in the mask image

// backgroundDiff(IplImage *I,IplImage *Imask, int num);

//

//NOTES: num is camera number which varies from 0 ... NUM_CAMERAS - 1. Typically you only have one camera, but this routine allows

// you to index many.

//

#ifndef AVGSEG_

#define AVGSEG_

#include "cv.h" // define all of the opencv classes etc.

#include "highgui.h"

#include "cxcore.h"

//IMPORTANT DEFINES:

#define NUM_CAMERAS 1 //This function can handle an array of cameras #define HIGH_SCALE_NUM 7.0 //How many average differences from average image on the high side == background

#define LOW_SCALE_NUM 6.0 //How many average differences from average image on the low side == background

第1页

你可能喜欢

热门文档

相关文档

  • f于背景差法的几种背景建模方法的研究

    f于背景差法的几种背景建模方法的研究_计算机软件及应用_IT/计算机_专业资料...120)的灰度变化曲线 均值法的原理是将运动物体看作噪声,用累积平均的方法 消除...

  • 目标检测中的背景建模方法

    基于颜色信息的背景建模方法(Color) A statistical approach for real-time robust background subtraction and shadow detection 9. 统计平均法 10. 中值滤波法( ...

  • 基于场景分析的背景建模

    我们的目的是建立一个可以尽量 多的解决上述问题的背景模型。 2.1.2 背景建模的常用方法 (1)中值法背景建模。 (2)平均值法背景建模。 (3) 卡尔曼滤波器模型...

  • 背景建模法

    背景建模法_计算机软件及应用_IT/计算机_专业资料 暂无评价0人阅读0次下载举报文档 背景建模法_计算机软件及应用_IT/计算机_专业资料。背景建模法各种分类方法...

  • 【论文】基于背景差法的几种背景建模方法的研究

    基于背景差法的几种背景建模方法的研究_专业资料。目前最常用也最有效的运动目标检测方法是背景差法,其中背景提取是背景差法的核心。主要比较了均值滤波法、中值...

  • 【论文】基于背景差法的几种背景建模方法的研究

    基于背景差法的几种背景建模方法的研究_专业资料。目前最常用也最有效的运动目标检测方法是背景差法,其中背景提取是背景差法的核心。主要比较了均值滤波法、中值...

  • 背景建模算法(一)---颜色背景模型

    背景建模算法 1 基本原理 视频图像中运动目标检测的一种方法, 其基本思想是对...其基本思想是:计算每个像素的平均值作为它的背景模型。检测当前 帧时,只需要将...

  • 非参数化背景建模方法研究

    同时将该方法和参数化的混合高斯背景建模进 行了比较。实验结果表明非参数化方法...1l2.2.1统计平均法………122.2.2中值滤波方法………...

  • 【论文】基于像素的背景建模方法综述

    嘲镧擞 ideoE i ern nc e igln D黼 【 文献信 息】 薛茹 ,本 宋焕生 , 张环 .基于像 素 的背景建模 方法综述 〔〕 电视技术 ,023(3 J.21,61) ...

  • 【论文】基于自适应学习率的背景建模方法

    基于自适应学习率的背景建模方法_专业资料。针对高斯混合模型中均值和方差的学习,提出基于自适应学习率的背景建模方法。统计每个像素模型被匹配的次数,在线更新学习率...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email