1 / 11

선형대수학 팀프로젝트

선형대수학 팀프로젝트. 200911424 조병우 200913247 권순필 200911393 박현규. MFC 연동 하기. Visual Studio 에서 빈 프로젝트가 아니라 MFC 응용 프로그램으로 프로젝트를 만듭니다. 프로젝트 속성창을 엽니다. VC++ 디렉터리의 라이브러리 디렉터리에 MATLAB 이 설치된 곳에 있는 include 폴더 경로를 적어줍니다. 구성 속성 -> 링커 -> 입력의 추가 종속성에다가 다음의 MATLAB 라이브러리 파일 경로를 입력합니다 .

daktari
Télécharger la présentation

선형대수학 팀프로젝트

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 선형대수학 팀프로젝트 200911424 조병우 200913247 권순필 200911393 박현규

  2. MFC연동 하기 Visual Studio에서 빈 프로젝트가 아니라 MFC 응용 프로그램으로 프로젝트를 만듭니다.

  3. 프로젝트 속성창을 엽니다.

  4. VC++ 디렉터리의 라이브러리 디렉터리에 MATLAB이 설치된 곳에 있는 include 폴더 경로를 적어줍니다.

  5. 구성 속성 -> 링커-> 입력의 추가 종속성에다가 다음의 MATLAB 라이브러리 파일 경로를 입력합니다. C:\Program Files (x86)\MATLAB71\extern\lib\win32\microsoft\libmat.lib C:\Program Files (x86)\MATLAB71\extern\lib\win32\microsoft\libmx.lib C:\Program Files (x86)\MATLAB71\extern\lib\win32\microsoft\libeng.lib C:\Program Files (x86)\MATLAB71\extern\lib\win32\microsoft\libmex.lib (MATLAB 설치 경로에 따라 다를 수 있습니다.)

  6. MATLAB이 설치 된 폴더에서 include 폴더를 찾아 그 안에 있는 내용을 Visual Studio가 설치 된 폴더 안에 있는 include 폴더 안에 복사 합니다.

  7. 솔루션 탐색기에서 stdafx.h소스 파일을 열어 다음과 같이 MATLAB 엔진 헤더 파일을 include 합니다. #include <MATLAB\engine.h> (앞에 MATLAB은 폴더명입니다.)

  8. MATLAB 엔진을 사용할 클래스 헤더 파일에 Engine 자료형 변수를 선언하고, 그 헤더 파일과 연결 된 .cpp파일의 클래스 초기화 부분에서 engOpen() 함수를 이용하여 엔진을 불러옵니다. 이제 engine.h에 있는 기능들을 활용하여 MATLAB을 사용 할 준비가 되었습니다.

  9. Engine.h주요 함수 engOpen(const char *) engClose(Engine *) - MATLAB 엔진을 불러와 변수에 저장하거나 할당 된 메모리를 해제. engEvalString(Engine *, char *) - 두 번째 매개변수로 들어온 문자열을 MATLAB 상에서 실행합니다. engGetVariable(Engine *, char *) - 두 번째 매개변수로 들어온 문자열과 일치하는 MATLAB 변수를 mxArray자료형으로return 합니다.

  10. 시연 구현 한 기능 이미지 자동 밝기 조절 이미지 자동 선명도 조절 어두운 부분 추출 이미지 임의의 각도로 회전

  11. 감사합니다.

More Related