
OpenCV
文章平均质量分 70
wendychueng
这个作者很懒,什么都没留下…
展开
-
[已解决]【错误】Libevcoder has been miscompliled
提示错误:Compiler did not align stack variables. Libevcoder has been miscompliled and may be very slow or crash. This is not a bug in libavcodec, but in the compiler.You may try recompiling using gcc>=4原创 2012-03-23 19:19:11 · 1259 阅读 · 0 评论 -
aoptflowlk.cpp
读源程序系列LK光流算法#include "cvtest.h"#if 0/* Testing parameters */static char FuncName[] = "cvCalcOpticalFlowLK";static char TestName[] = "Optical flow (Lucas & Kanade)";static char TestClass[] =转载 2012-04-14 16:01:57 · 668 阅读 · 0 评论 -
cvInRange函数详解
CV_IMPL voidcvInRangeS( const void* srcarr, CvScalar lower, CvScalar upper, void* dstarr ){ static CvBigFuncTable inrange_tab; static int inittab = 0; CV_FUNCNAME( "cvInRangeS" );原创 2012-04-13 21:55:11 · 14598 阅读 · 1 评论 -
camshift.cpp
#include "_cvaux.h"CvCamShiftTracker::CvCamShiftTracker(){ int i; memset( &m_box, 0, sizeof(m_box)); memset( &m_comp, 0, sizeof(m_comp)); memset( m_color_planes, 0, sizeof(m_co转载 2012-04-14 15:56:57 · 890 阅读 · 0 评论 -
cvoptflowlk.cpp 程序__分析coming soon
#include "_cv.h"typedef struct{ float xx; float xy; float yy; float xt; float yt;}icvDerProduct;#define CONV( A, B, C) ((float)( A + (B<<1) + C ))/*F///////////////////原创 2012-04-14 17:45:50 · 1085 阅读 · 1 评论 -
camshiftdemo.c [OpenCV的sample/c]
#ifdef _CH_#pragma package #endif#ifndef _EiC#include "cv.h"#include "highgui.h"#include #include #endif#pragma comment(lib, "cv.lib")#pragma comment(lib, "cxcore.lib")#pragma comment(lib,转载 2012-04-14 15:42:15 · 2057 阅读 · 1 评论 -
optflow.cpp
#include "cvtest.h"#include #include #include #include #include #include "cvaux.h"using namespace cv;using namespace std;class CV_OptFlowTest : public CvTest{public: CV_OptFlowTest();转载 2012-04-14 15:59:26 · 2538 阅读 · 0 评论 -
aoptflowhs.cpp
读源程序系列HS光流算法#include "cvtest.h"#if 0/* Testing parameters */static char FuncName[] = "cvCalcOpticalFlowHS";static char TestName[] = "Optical flow (Horn & Schunck)";static char TestClass[] = "Al转载 2012-04-14 16:07:28 · 744 阅读 · 0 评论 -
cvMeanShift + cvCamshift
#include "_cv.h"/*F///////////////////////////////////////////////////////////////////////////////////////// Name: cvMeanShift// Purpose: MeanShift algorithm// Context:// Paramet转载 2012-04-14 15:55:54 · 2494 阅读 · 0 评论 -
OpenCV 播放视频(带滚动条)
//+++++++++++++++++++++++++++++++++++++++++++++++//++++++++=====+++读入视频文件++++++++++++++++++++//+++++++++++++++加入滚动条控制+++++++++++++++++++//+++++++++++++++++转换为灰度图+++++++++++++++++++//==============原创 2012-04-12 16:38:33 · 1132 阅读 · 0 评论 -
OpenCV 亮度调节
#include "cv.h"#include "highgui.h"#include int ImageAdjust(IplImage *src,IplImage *dst, double low,double high, //x direction double bottom,double top, /转载 2012-04-12 16:27:55 · 2814 阅读 · 1 评论 -
光流法 运动物体检测【中文解释】
光流法 运动物体检测#include #include "cv.h"#include "cxcore.h"#include "highgui.h" static const double pi = 3.14159265358979323846;inline static double square(int a){ return a * a;}/*该函数目的:给i转载 2012-03-23 19:15:29 · 6087 阅读 · 3 评论 -
OpenCV 摄像头录制视频
// video.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include int main( int argc, char** argv ){ //声明IplImage指针 IplImage* pFrame = NULL; IplImage* img; //获取摄像头 CvCapture原创 2012-03-23 15:31:54 · 5456 阅读 · 1 评论 -
【问题】拍摄的视频无编码信息
摄像头拍摄的视频无编码信息,以至于opencv无法读入处理解决方法:1. 用QQ影音转码2. 查看编码信息 【 Codec ID : xvid 】D:\My Documents\My Videos\ou_兼容格式 AVI_320x240.AVI General Complete name : D:\My Docu原创 2012-03-23 18:55:15 · 1588 阅读 · 0 评论 -
光流法 运动物体检测[Eng]
// OpticalFlow.cpp : Defines the entry point for the console application.///* --Sparse Optical Flow Demo Program--* Written by David Stavens (dstavens@robotics.stanford.edu)*/#include #include转载 2012-03-24 15:39:41 · 2357 阅读 · 1 评论 -
光流法 \OpenCV2.1\samples\c\lkdemo.exe
/////////////光流法//////////////#include #include #include void help(){ printf( "This program demonstrate dense \"Farneback\n optical flow\n" "It read from camera 0, and shows how to use and d转载 2012-03-24 17:48:15 · 3481 阅读 · 0 评论 -
载入一幅图片寻找角点
画出角点 输出图片 并打印出角点坐标具体解释参考 我思故我在 博客http://blog.youkuaiyun.com/superdont/article/details/6587523#include "cv.h"#include "highgui.h"#include "stdio.h"#include "iostream.h"#define max_corners 80转载 2012-03-26 16:28:11 · 772 阅读 · 0 评论 -
鼠标响应绘图
问题:这个相当于是画点,移动快了就不连续了。#include #include void my_mouse_callback( int event, int x, int y, int flags, void* param );CvPoint p = cvPoint(0,0);CvPoint q = cvPoint(0,0);int thickness=3;原创 2012-03-29 17:45:24 · 964 阅读 · 0 评论 -
opencv处理视频颠倒问题
在使用opencv显示图像时会出现图像倒立的情况,与IplImage的origin属性有关系。origin()const;返回影象结构。0-顶—左结构,1-底—左结构 (Windows bitmaps 风格)。origin为0表示顶左结构,即图像的原点是左上角,如果为1为左下角。一般从硬盘读入的图片或者通过cvCreateImage方法创建的IplImage图片默认原创 2012-03-23 11:11:43 · 5653 阅读 · 4 评论 -
fback.cpp +xiaogaijing
from C:\OpenCV2.1\samples\c#undef _GLIBCXX_DEBUG#include "cv.h"#include "highgui.h"using namespace cv;void drawOptFlowMap(const Mat& flow, Mat& cflowmap, int step, do原创 2012-04-28 16:16:29 · 1033 阅读 · 0 评论