原创 非負數四捨五入

#include <iostream> #include <cmath> using namespace std; int round(double number); int main() { double num; char a

原创 支持向量機(SVM)綜述

  1. SVM的優勢 (1)可以解決小樣本情況下的機器學習問題#此前在首頁部分顯示# (2)可以提高泛化性能 (3)可以解決高維問題 (4)可以

原创 Gaussian Smooth

#include "stdafx.h" #include <iostream> #include "opencv2/opencv.hpp" using namespace std; using namespace cv; void

原创 字符型數字轉換成數值型

 #include <stdio.h> void main() { int stoi(char str[]); char str[10]; p

原创 Read media

#include "stdafx.h" #include <iostream> #include "opencv2/opencv.hpp" using namespace std; using namespace cv; int

原创 draw rectangle

//Define out callback which we will install //for mouse events. void my_mouse_callback( int event, int x, int y, int

原创 use cvPrySegmentation

//use cvPrySegmentation void f( IplImage *src, IplImage *dst ) { CvMemStorage *storage = cvCreateMemStorag

原创 Fast corner detection

int _tmain(int argc, _TCHAR* argv[]) { Mat img = imread("LenaGr.jpg", 0); //vector of KeyPoints vector<KeyPoint> ke

原创 Read Image

#include "stdafx.h" #include <iostream> #include "opencv2/opencv.hpp" using namespace std; using namespace cv; int

原创 C++ const

一、Const作用    如下所示: 1 可以定義const常量   const int Max = 100;  2 便於進行類型檢查 const常量有數據類型,而宏常量沒有數據類型。編譯器可以對前者進行類型安全檢查,而對後者只進行字

原创 LinkQueue

 using namespace std; #include <iostream> #define OK 1 #define ERROR -1

原创 SVM入門指南

  http://ntu.csie.org/~piaip/svm/svm_tutorial.html http://www.csie.ntu

原创 Transform img to 1/2

IplImage* doPyrDown( IplImage* in) { // Best to make sure input image is divisible by two. // assert( in

原创 capture from the camera

int _tmain(int argc, _TCHAR* argv[]) { cvNamedWindow("Example2_9", CV_WINDOW_AUTOSIZE); CvCapture *capture; captur

原创 HString

using namespace std; #include <iostream> #define OK 1 #define ERROR -1 #define OVERFLOW -2 #define TRUE 1 #define FAL