반응형

// convert mat to vector<float>

vector<float> temp;

img_hog.convertTo(temp, -1, 1, 0);



// convert vector<float> to mat

vector<float> temp;

Mat(temp);


반응형
반응형

아이폰 개발시 도움이 되는 각종 팁 , 튜토리얼, 소스코드 링크 모음입니다. 제가 주로 트위터를 통해서 공개한 것들입니다만, 워낙 간헐적으로 트위팅 한듯해서 좀더 링크를 모아서 포스팅 합니다. 한글판 앱스토어 리뷰 가이드라인은 아이폰 앱 개발자분들은 꼭 한번 읽어보셔야 합니다.

반응형
반응형

Adding a framework is managed through the editor for the project:

 

a) Select the project (which contains the target you want to add the framework to), either from the Project Navigator or via the Jump Bar

b) In the source list on the left side of the project editor, select the target

c) Across the top of the target editor area, on the right, will be a few tabs:  select the third one, "Build Phases"

d) From the list of phases presented, disclose the "Link Binaries With Libraries" phase (the last one, normally)

e) Click the plus sign in the lower-left of the phase

 

This will bring down a sheet of the available libraries and frameworks to select from.  Then simply select the framework(s) you wish to add, and click the "Add" button.

 

반응형
반응형
void CEyeColorReplaceView::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default

if(nFlags==MK_CONTROL+MK_LBUTTON)
{
....;
}
         

CView::OnLButtonDown(nFlags, point);
}
반응형
반응형
간편한 GDI+를 사용하기 위해서는 간단한 초기화가 필요하다.. 

초기화 방법

1. 헤더 파일 인클루드

stdafx.h에 아래의 헤더파일을 인클루드 한다. 

#include <gdiplus.h>
using name space Gdiplus;


2. Startup & Shutdown

CWinApp의 파생클래스인 C~~~~App에 GDI+ 사용시작하고 끝을 내는 함수를 추가해준다. 

우선 C~~~~App에 멤버변수로서... 

ULONG_PTR m_gdiplusToken;

를 추가한다. 


이후에 C~~~~~App의 멤버함수인 InitInstance()에 


  GdiplusStartupInput gdiplusStartupInput;
GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);

를 추가한다.

마지막으로 C~~~~App에 ExitInstace()함수를 추가하고...
여기에..

GdiplusShutdown(m_gdiplusToken);

를 추가한다. 
 


3. 라이브러리 추가

 마지막으로 Project에 Property로 가서 Link를 추가한다. 
Link의 input 라이브러리 부분에

gdiplus.lib


여기까지 추가하시고 사용하시면 됩니다.


레퍼런스 서적 : Visual C++ 6 완벽가이드 - 영진출판사 -  
반응형
반응형
들으러 가고 싶다.. ㅠ.ㅠ


반응형
반응형

( 위 링크의 우분투 코리아 글 정리 )

1. 준비물
- 우분투 이미지파일 및 시디
- usb를 지원하는 가상 머신
- usb 메모리

2. 설치
- 가상머신 생성
- 생성된 가상 머신의 하드 디스크 제거
- usb 메모리 장착
- 메뉴에서 usb 인식 가능 상태로 변경
- 우분투 이미지 파일을 시디에 연결
- 우분투 설치
- 설치 종료

3. 사용
- 일반 컴퓨터에 usb 메모리 장착
- 바이오스에서 usb 메모리의 부팅 순서를 최상위로 설정
- 부팅




반응형
반응형
3차원 회전관련 헷갈리는 분 참고하세요. 
http://www.siggraph.org/education/materials/HyperGraph/modeling/mod_tran/3drota.htm

반응형
반응형
Fast Image Mosaicing for Panoramic Face Recognition

[ Fan Yang, Michel Paindavoine etc. , ISPA 2005 ]


< Paper read and summary : chamcham) >


Abstract

◆ Present a system that  performs mosaicing of panoramic faces.

◆ Objective is to study the feasibility of panoramic face construction in real-time.

◆ we built a simple acquisition system composed of 5 standard cameras (simultaneously 5 views of a face at different angles)

◆ Mosaicing for Panoramic Face

    - hardware-achievable algorithm

    - consisting of successive linear transformations



반응형
반응형
Multi-Camera Calibration

[ Ismail Oner Sebe, STMicroelectronics Technical Report, 2002 ]


< Paper read and summary : chamcham >


Abstract

◆ Accurate Camera Calibration
    - Causes degradation in the rendering quality

◆ In this paper
   - Present a method to calibrate a single camera
   - Extend the method to calibrate multiple cameras

◆ Idea
    - Find camera parameters by minimizing the cross-projection errors among the cameras
    - Need minimal user intervention

◆ Calibration Error
    - About 0.03 pixels or 0.06mm




반응형

+ Recent posts