Some Linux command. (Ubuntu 12.04.3)

// Network


$ sudo ifconfig eth0 [IP Address]
$ sudo route add default gw [Gateway IP]

Cuby 56 發表在 痞客邦 留言(0) 人氣()

Some git command.

// initial repository
$ git init
// information
$ git status

Cuby 56 發表在 痞客邦 留言(0) 人氣()

Convert string (char array) to int.

#include <iostream>
#include <cmath>
usingnamespace std;
int a2i(char* s) {

Cuby 56 發表在 痞客邦 留言(0) 人氣()

input images

OpenCV Image Stitching ( ver 2.4.3 )

#1. Include header and using namespace

#include "opencv2/stitching/stitcher.hpp"
#include <vector>
usingnamespace std;

Cuby 56 發表在 痞客邦 留言(0) 人氣()

Inheritance constructor & destructor :

 #1. Constructor

#include <iostream>
usingnamespace std;
classbase {

Cuby 56 發表在 痞客邦 留言(0) 人氣()

This example shows that what is the Constructor, Destructor, Copy constructor

and Assignment constructor.

Code : 

#include <iostream>
usingnamespace std;

Cuby 56 發表在 痞客邦 留言(0) 人氣()

SURF

SURF ( Speeded Up Robust Features )

Source : OPENCV_PATH\samples\c\find_obj.cpp

Reference : http://en.wikipedia.org/wiki/SURF

Copy from source :

#define USE_FLANN

Cuby 56 發表在 痞客邦 留言(0) 人氣()

SIFT

SIFT( Scale-invariant feature transform )

Source : http://blogs.oregonstate.edu/hess/

Reference : http://en.wikipedia.org/wiki/Scale-invariant_feature_transform

Include header and define marco :

#include "sift.h"

Cuby 56 發表在 痞客邦 留言(0) 人氣()

C++ Variadic function.

For ISO C++ :

#include <iostream>
usingnamespace std;
template<typename T>

Cuby 56 發表在 痞客邦 留言(0) 人氣()

C++ type casting :

  1. static_cast<TYPE>( OBJ )

  2. dynamic_cast<TYPE>( OBJ )

  3. reinterpret_cast<TYPE>( OBJ )

  4. const_cast<TYPE>( OBJ )

Cuby 56 發表在 痞客邦 留言(0) 人氣()

box, triangle

Bounding Box, Circle Detection, Triangle Detection.


Input : iplOri as gray image ( 1 chennel )

Output : iplObj as color image ( 3 chennel )

#1. Bounding Box

Cuby 56 發表在 痞客邦 留言(0) 人氣()

Some IplImage release probilem.

1. ) never release

   a.) situation 

IplImage* iplImgA = cvCreateImage( cvSize( WIDTH, HEIGHT ) , IPL_DEPTH_8U , 3 );
IplImage* iplImgB = cvCreateImage( cvSize( WIDTH, HEIGHT ) , IPL_DEPTH_8U , 3 );

Cuby 56 發表在 痞客邦 留言(0) 人氣()

1 2 3
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。