1 / 21

Video For Windows

Video For Windows. 2007.04.04 멀티미디어 공학 이 정 우. 목 차. VFW? VFW Setting Image Buffer. VFW?. Video For Windows 영상 녹화 라이브러리 PC 캠의 영상 제어. MFC -> Dialog base. 멤버 변수 추가. VFW Setting. VFW Setting. 헤더파일 추가. VFW Setting. 지역변수 추가 비트맵 정보 BITMAPINFO BitInfo; 바이트 형의 포인터

nadine
Télécharger la présentation

Video For Windows

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. Video For Windows 2007.04.04 멀티미디어 공학 이 정 우

  2. 목 차 • VFW? • VFW Setting • Image Buffer

  3. VFW? • Video For Windows • 영상 녹화 라이브러리 • PC 캠의 영상 제어

  4. MFC -> Dialog base 멤버 변수 추가 VFW Setting

  5. VFW Setting • 헤더파일 추가

  6. VFW Setting • 지역변수 추가 • 비트맵 정보 BITMAPINFO BitInfo; • 바이트 형의 포인터 LPBYTE pImgBuffer; (pImgBuffer=NULL)

  7. VFW Setting • OnInitDialog() 함수에 코딩

  8. VFW Setting • capCreateCaptureWindow() - 윈도우 생성 • capSetCallbackOnFrame() - 콜백함수 지정 • capDriverConnect() - 카메라 드라이버와 연결

  9. VFW Setting • capPreviewRate() - 초당 프레임 지정 • capOverlay() - overlay 설정 • capPreview() - 미리보기 기능 설정

  10. VFW Setting • 콜백함수 선언

  11. VFW Setting • 콜백함수 등록

  12. VFW Setting • 라이브러리 링크 (Alt+ F7 -> Link)

  13. VFW Setting • 종료시 연결해제(WM_DESTROY)

  14. VFW Setting • 실행화면

  15. Image Buffer • 저장 형태 pixel BLUE GREEN RED

  16. Image Buffer • 콜백함수의 인자 (HWND hWnd, LPVIDEOHDR lpVHdr) B = lpVHdr->lpData[i]; G = lpVHdr->lpData[i+1]; R = lpVHdr->lpData[i+2];

  17. Image Buffer • 흑백영상 GRAY = (B+G+R)/3 lpVHdr->lpData[i]=GRAY; lpVHdr->lpData[i+1]=GRAY; lpVHdr->lpData[i+2]=GRAY;

  18. Image Buffer • 한가지 색 영상 lpVHdr->lpData[i] = 0; lpVHdr->lpData[i+1] = 0; lpVHdr->lpData[i+2] = R;

  19. Image Buffer • 이진화 Threshold value

  20. Image Buffer • 이진화 영상 원영상 이진화 영상 좌표 획득

  21. 감사합니다

More Related