본문 바로가기

IT/ARtoolkit

ARToolKit 함수 찾기 일단 내가 비주얼 C++ 2008(다운로드)을 쓰는 관계로 이걸 위주로 해서 설명해보자면.. 저기 저 폴더 모양을 선택하면, 이런 창이 뜬다. 여기서 그러면, 아래와 같은 창이 뜨는데 여기서 lib폴더와 include 폴더를 설정해 준다. include 폴더는 헤더파일들이, lib폴더에는 소스 파일들이 들어 있다. 이렇게 설정 한 뒤 찾으면 어느 정도 쉽게 찾을 수 있음. 예를 들어 arDetectMarker를 찾으면, 이렇게 결과가 뜨는데, 함수의 정의를 보려면 여기서 .h로 끝나는 파일을 찾아서 쭉- 내려가다가 변수종류 함수이름(변수종류 변수명...) 이렇게 된 것을 클릭하면 보다 쉽게 찾을 수 있다. 더보기
ARToolKit Documentation - Developing your first application, part1 : mainLoop 함수 2. mainLoop! static void mainLoop(void) { ARUint8 *dataPtr; ARMarkerInfo *marker_info; int marker_num; int j, k; /* grab a vide frame */ if( (dataPtr = (ARUint8 *)arVideoGetImage()) == NULL ) { arUtilSleep(2); return; } if( count == 0 ) arUtilTimerReset(); count++; argDrawMode2D(); argDispImage( dataPtr, 0,0 ); /* detect the markers in the video frame */ if( arDetectMarker(dataPtr, thresh, &mark.. 더보기
ARToolKit Documentation - Developing your First Application, Part1 (함수 설명 1) Developing your First Application, Part 1 에 나와있는 함수 정보 1. init // 초기화 함수 static void init( void ) { ARParam wparam; /* open the video path */ if( arVideoOpen( vconf ) < 0 ) exit(0); /* find the size of the window */ if( arVideoInqSize(&xsize, &ysize) < 0 ) exit(0); printf("Image size (x,y) = (%d,%d)\n", xsize, ysize); /* set the initial camera parameters */ if( arParamLoad(cparam_name, 1, &wpara.. 더보기