原创 基於VS2013 MFC的OPENCV3.1環境構建及測試
1. 創建OPENCV工程 1)打開VS2013,點擊新建項目->MFC應用程序,並選擇保存名稱及路徑,如下圖, 2) 點擊確定進入MFC應用程序嚮導,設置如下,
原创 C++ 之Namespaces
A namespace is used as additional information(附加信息) to differentiate similar functions(區分類似的功能), classes, variables
原创 OPENCV學習筆記1-3_Mat 保存圖像
1.1 Storing methods(Mat存儲方法) 1. color space 儲像素值需要指定顏色空間和數據類型。顏色空間是指對一個給定的顏色,如何組合顏色元素以對其編碼。最簡單的顏色空間要屬灰度級
原创 OPENCV學習筆記2-5_掃描圖像並訪問相鄰像素
To illustrate this recipe, we will apply a processing function that sharpens an image(銳化圖像的處理函數). This time, the proc
原创 OPENCV學習筆記1-4_Mat 儲存管理
Mat是OpenCV最基本的數據結構,Mat即矩陣(Matrix)的縮寫,Mat數據結構主要包含2部分:Header(矩陣頭)和Pointer(矩陣指針)。Header中主要包含矩陣的大小,存儲方式,存儲地址等信息;Pointer中存
原创 QT5.6.2基於VS2013開發環境配置(Win7 64位)
1) 在https://www.qt.io/download-open-source/#section-2頁面下載如下文件: Qt 5.6.2 for Windows 64-bit (VS 2013, 832 MB)Visual Stud
原创 OPENCV學習筆記1-6_圖像上繪圖
1.1 Related Class 1. Class: OpenCV::CvPoint CvPoint:表示一個座標爲整數的二維點,是一個包含integer類型成員x和y的結構體。 typdef struct CvPoint {
原创 OPENCV學習筆記1-1_Mat 創建
在2001年剛剛出現的時候,OpenCV基於 C 語言接口而建。爲了在內存(memory)中存放圖像,當時採用名爲 IplImage 的C語言結構體,但這種方法必須接受C語言所有的不足,這其中最大的不足要數手動內存管理,其依據是用
原创 OPENCV學習筆記1-5_鼠標事件
1. 回調函數 cvSetMouseCallback void cvSetMouseCallback(const char* window_name, CvMouseCallback on_mouse, void* param CV
原创 C++ 之 function pointers and callback function
1.1 函數指針(Function Pointers) 函數是存放在內存代碼區域內的,可以用指針來存取函數,把這種指向函數入口地址的指針稱爲函數指針。 1.Hello World!實現之函數調用 #include <iostre
原创 OPENCV學習筆記1-7_定義感興趣區域
Sometimes, a processing function(處理函數) needs to be applied only to a portion(部分) of an image. OpenCV incorporates (內嵌
原创 OPENCV學習筆記2-4_編寫高效的圖像掃描循環
When you write an image-processing function, efficiency is often a concern(涉及). When you design your function, you wi
原创 OPENCV學習筆記1-8_選取圖像局部區域
#include <iostream> #include "opencv2/opencv.hpp" #include <stdio.h> using namespace std; using namespace cv; int main
原创 OPENCV學習筆記1-9_視頻讀取
#include <iostream> #include "opencv2/opencv.hpp" using namespace std; using namespace cv; int main( int argc, char**