Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc/今天上午和於老師打電話,以前並不認識的,最近在讀他的這本書,發覺實在是讀的不爽,在論壇上提交的錯誤也沒有人回複。於老師很和藹的,畢竟大家都是年輕人,和我說在改變的時候一定會進行修訂的。 我個人覺得通過這本書學習OpenCV的人要注意: 1.對於函數的闡釋和資料結構的分析,建議先看原英文手冊,我在這舉一個例子: char *imageDataOrigin; /*
Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc/#include "cv.h"#include "highgui.h"#include <stdio.h>CvPoint prev_pt={-1,-1} ;CvPoint pt_beg={-1,-1},pt_end = {-1,-1};CvPoint pt1={-1,-1},pt2={-1,-1};CvRect rect;IplImage *src;IplImage *tmp;void
Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc//* * ===================================================================================== * * Filename: poly.c * * Description: a program of drawing the Poly * * Version: 1.0 *
Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc/我們需要瞭解一個多維陣列(矩陣)和一個一維,但是包含高維資料的數組之間的區別。假設,你有n個點(每個點有x,y,z座標值)需要儲存到CvMat*
Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc/有些在windows下能夠開啟的txt文字檔在Ubuntu 下 用gedit開啟時,中文顯示是亂碼,這是因為編碼方式不同造成的,windows下有些txt檔案的編碼方式gbk,而Ubuntu下的gedit預設 沒有對gdk的支援,所以需要手動設定,在菜單-->System Tool-->Configuration
Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc/The most loved place, for me, in this country has in fact been many places. It has changed throughout the years, as I and my circumstances have changed. I haven't really lost any of the best places from
Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc/ #include "cv.h"#include "highgui.h"#include <stdio.h>#include "SamFL.h"#define DIF_NEG 0#define DIF_POS 1#define NOT_EDGE 0#define EDGE 1double edge_maxima[] = { 0 ,255 };double edge_thresh;int
Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc/#include <stdio.h>#include "cxcore.h"int main( int argc, char** argv ){ CvFileStorage* fs = cvOpenFileStorage( "points.yaml", 0, CV_STORAGE_READ ); /*所有已讀儲存在檔案元素的關鍵字被儲存在hash表中,
Time of Update: 2018-12-06
作者:gnuhpc@gmail.com簡介:在電腦視覺中,Lucas–Kanade光流演算法是一種兩幀差分的光流估計演算法。它由Bruce D. Lucas 和 Takeo Kanade提出。光流的概念:(Optical flow or optic
Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc/#include <iostream>#include <cv.h>#include <highgui.h>void TrackBarFunc(int val); struct _TrackBarData{ char *Name; //trackbar的名字 int Pos; //trackbar的初始位置 int MaxValue; //上限値}
Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc/ --Henry Wadsworth Longfellow The first snow came. How beautiful it was, falling so silently, all day long, all night long, on the mountains, on the meadows, on the roofs of the living, on the graves
Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc/ /* * ===================================================================================== * * Filename: array1.c * * Description: To show how to set and get a Array * * Version: 1.0
Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc//** =====================================================================================** Filename: array2.c** Description: Show How to traverse a Array to set and get the elements** Version: 1.0*
Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc/ #pragma comment( lib, "cxcore.lib" )#include "cv.h"#include <stdio.h>void main(){ //矩陣元素為三通道浮點數 CvMat* mat = cvCreateMat(3,3,CV_32FC3); cvZero(mat);//將矩陣置0 //為矩陣元素賦值
Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc/1,核心啟動init 2,init找到/etc/event.d/rc-default檔案,確定預設的運行層級(X) 3,觸發相應的runlevel事件,開始運行/etc/event.d/rcX 4,rcX運行/etc/init.d/rc,傳入參數X 5,/etc/init.d/rc指令碼進行一系列設定,最後運行相應的/etc/rcX.d/中的指令碼 6,/etc/rcX.d/
Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc/1.在求矩陣轉置方面,cvReshape比cvTranspose要好: cvMat* matT, hdr; matT = cvReshape( mat, &hdr, CV_MAT_CN(mat->type), mat->cols ); 以上方式比下邊的方式要好 CvMat* matT = cvCreateMat( mat->cols,
Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc/1.初始化矩陣: 方式一、逐點賦值式: CvMat* mat = cvCreateMat( 2, 2, CV_64FC1 ); cvZero( mat ); cvmSet( mat, 0, 0, 1 ); cvmSet( mat, 0, 1, 2 ); cvmSet( mat, 1, 0, 3 ); cvmSet( mat, 2, 2, 4 );
Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc/// TrainingTools.cpp : 定義控制台應用程式的進入點。//#include "stdafx.h"#include <iostream>#include <string.h>#include <cxcore.h>#include <cv.h>#include <highgui.h>#include
Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc/#include "cv.h"#include "highgui.h"#include <stdio.h>#include <stdlib.h>#include <omp.h>void EdgeOpenMP(IplImage *src,IplImage *dst,int thresh){ int height = src->height;
Time of Update: 2018-12-06
作者:gnuhpc 出處:http://www.cnblogs.com/gnuhpc//* * ===================================================================================== * * Filename: motiondetect.c * * Description: A method of detecting the motion * * Version: 1