原创 opencv 筆記08Core_DFT

#include "opencv2/core/core.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #includ

原创 opencv 筆記02Core_Scan

1. OpenCV提供了兩個簡便的可用於計時的函數 getTickCount() 和 getTickFrequency() 。第一個函數返回你的CPU自某個事件(如啓動電腦)以來走過的時鐘週期數,第二個函數返回你的CPU一秒鐘所走的時鐘週

原创 opencv 筆記16 Imgproc_Sobel

#include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include <stdlib.h> #include <stdio.h>

原创 opencv 筆記13 Imgproc_Threshold

#include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include <stdlib.h> #include <stdio.h>

原创 opencv 筆記15 Imgproc_Mackingboard

#include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include <stdlib.h> #include <stdio.h>

原创 opencv 筆記11 Imgproc_Morphology2

#include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include <stdlib.h> #include <stdio.h>

原创 effective C++ 筆記-02-內存管理03

條款11: 爲需要動態分配內存的類聲明一個拷貝構造函數和一個賦值操作符 // 一個很簡單的String類 class String { public: String(const char *value); ~String();

原创 opencv 筆記04Core_Blending

結果: 代碼 #include <cv.h> #include <highgui.h> #include <iostream> using namespace cv; int main( int argc, char** arg

原创 opencv 筆記14 Imgproc_Filter2D

#include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include <stdlib.h> #include <stdio.h>

原创 opencv 筆記09Imgproc_Smoothing

 歸一化塊濾波器 (Normalized Box Filter) 最簡單的濾波器, 輸出像素值是核窗口內像素值的 均值 ( 所有像素加權係數相等) 核如下: void blur(const Mat& src, Mat& ds

原创 opencv 筆記06Core_Paint

  OpenCV 原理 本節中,我門將大量使用 Point 和 Scalar 這兩個結構:    Point 表示了由其圖像座標  和  指定的2D點。可定義爲: Point pt; pt.x = 10; pt.y = 8;

原创 opencv 筆記03Core_Mask

基本方法 void Sharpen(const Mat& myImage,Mat& Result) { CV_Assert(myImage.depth() == CV_8U); // 僅接受uchar圖像 Resu

原创 opencv 筆記05Core_Change

#include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> using namespace std; using