当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 今天仔细研究了一下差分法求运动的轮廓,简单用程序实现了一下,结果如下,差分法比较容易获得运动的轮廓,对于不运动的身体部分则不会显示,这样的好处是可以得到需要关注的运动部分,不运动的则不关心,但是如果需要得到整个人体的轮廓,该如何呢?我试着用程序记录前4帧的数据,然后叠加出来显示,看来效果不是很好。
 

 

    摘要:wince下显示gif、jpeg以及其它格式的图像文件本文是使用microsoft® embedded visual c++®(evc++)为pocket pc开发c++应用程序系列文章的第二篇。本文介绍了如何通过免费的cvoimage类库使用pocket pc的imgdecmp.dll图像处理程序。 本文是使用microsoft® embedded visual c++&......
    摘要: 近日做的程序需要取得字符点阵数据的功能,研究了一下,费了点周折才成功,现将方法总结如下。 取得字符点阵主要用getglyphoutline函数:dword getglyphoutline( uint nchar, uint nformat, lpglyphmetrics lpgm, dword cbbuffer, lpvoid lpbuffer, const mat2 far* lpmat2 )......


基于opencv利用差分法求运动的轮廓

今天仔细研究了一下差分法求运动的轮廓,简单用程序实现了一下,结果如下,差分法比较容易获得运动的轮廓,对于不运动的身体部分则不会显示,这样的好处是可以得到需要关注的运动部分,不运动的则不关心,但是如果需要得到整个人体的轮廓,该如何呢?我试着用程序记录前4帧的数据,然后叠加出来显示,看来效果不是很好. 还要继续考虑...

#ifdef _ch_#pragma package <opencv>#endif 【程序编程相关:在SourceForge.net上如何使

关键部分的代码如下:main.cpp 【推荐阅读:《循序渐进学用Visual C++ 6.

// various tracking parameters (in seconds)const double mhi_duration = 1;const double max_time_delta = 0.5;const double min_time_delta = 0.05;// number of cyclic frame buffer used for motion detection// (should, probably, depend on fps)const int n = 4; 【扩展信息:Visual C++中的日历控件使用详解

#ifndef _eic// motion templates sample code#include "cv.h"#include "highgui.h"#include <time.h>#include <math.h>#include <ctype.h>#include <stdio.h>#endif

// ring image bufferiplimage **buf = 0;int last = 0;

// temporary imagesiplimage *mhi = 0; // mhiiplimage *orient = 0; // orientationiplimage *mask = 0; // valid orientation maskiplimage *segmask = 0; // motion segmentation mapcvmemstorage* storage = 0; // temporary storage

iplimage* abs_image = 0;iplimage* add_abs_image = 0;iplimage* abs_images[3];

iplimage* grey =0;iplimage* pre_grey = 0;iplimage* dst = 0;  cvseq* contour = 0;

int test( iplimage* src,iplimage* pre_src );

int main(int argc, char** argv){    //iplimage* motion = 0;    cvcapture* capture = 0; iplimage* pre_image = 0; iplimage* image = 0; int frame_count =0;


...   下一页
 ·opengl 模型顶点法向量的计算     »显示摘要«
    摘要: 在opengl编程中,三维模型顶点法向量的计算很重要,它直接影响着显示的效果;本人接触opengl时间不长,很长一段时间一直困惑于法向量计算的问题,后经仔细研究并找了些资料才基本实现了法向量的计算算法,现总结如下,希望对初学者能有些帮助。 大家知道,在opengl中顶点-三角形模型对光照的反射取决于顶点法向量的设置,如果法向量计算正确,显示出来的模型表面很光滑,有光泽,否则不是棱角分明就是模糊、......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE