原创 opencv 中圖像處理的一般流程——面向對象

圖像處理算法opencv實現的通用框架,很實用,總結如下。 將要處理的圖片當做參數傳遞給算法類,每個算法都定義一個類 算法類的定義             1.必要的參數,參數的set,get函數;             2.必要的輔

原创 MSER_sample

// mser.cpp : 定義控制檯應用程序的入口點。 // #include "stdafx.h" #include "opencv2/highgui/highgui.hpp" #include "opencv2/features2

原创 圖像縮放

高深的搞不動了搞些簡單的 // Gauss.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "cv.

原创 opencv 視頻處理框架,面向對象,簡單實用,可擴展

頭文件 /*------------------------------------------------------------------------------------------*\ This file contai

原创 halcon 培訓

昨天去大恆圖像進行了halcon11的培訓 培訓人員講解了halcon的應用範圍,使用方法,典型案例。 平時在實驗室看論文,研究算法,對算法的應用領域,實際應用方法卻不甚瞭解,通過本次培訓瞭解了具體的應用,感覺這一領域還是大有可爲的。

原创 opencv2學習_1從C風格轉向C++

opencv2 之後的版本都是基於C++的,雖對於C版本的函數、數據結構還有支持,對於習慣使用C風格的朋友們來說很不適應。 比如圖片的數據結構都發生了巨大的變化,各種迭代器,向量,容器的使用。 opencv在不斷地更新,而且速度非常快,主

原创 OJ練習題

1十六進制轉成十進制顯示 char a[10]; gets_s(a); int len = strlen(a); int sum = 0, int weight = 1; for(int i=len-1;i>1;i--)

原创 時間函數

#include <iostream> #include <ctime> #include <stdlib.h> #include<mem.h> using namespace std; time_t GetTimeStampByStr

原创 opencv2中MSER區域提取

opencv 更新速度一直在加快,最新版本都出到了3.0beta了。MSER一直在用C接口的,最近想試一下3.0的MSER,發現還用不起來,因爲封裝方法還沒搞清楚,也沒有太多參考,就用了Qt5.3+opencv2.4.7中的C++接口MS

原创 vote

#include <iostream> #include<map> #include<string> using namespace std; map<string,int> candidaes; typedef map<string,

原创 oj 題(二)

句子翻轉,單詞翻轉 // HuaweiOJ.cpp : 定義控制檯應用程序的入口點。 // #include "stdafx.h" #include <string.h> #include<iostream> using names

原创 自己寫的Kmeans

#include <iostream> #include <vector> #include<algorithm> #include<stdlib.h> #include "fstream" using namespace std; ty

原创 文件讀寫

#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAXLINELENGTH 10 void fileCopy(FILE *pfin,FILE *fou

原创 zookeeper C API

#include <stdio.h> #include <stdlib.h> #include <string.h> #include "include/zookeeper/zookeeper.h" #include "include/z

原创 文件操作——日期排序

#include <iostream> #include <stdlib.h> #include <stdio.h> #include <vector> using namespace std; #define MAXLINELENGT