영상신호처리 : HW4 Computing 3D Depth
- 최초 등록일
- 2015.11.09
- 최종 저작일
- 2015.04
- 10페이지/ 한컴오피스
- 가격 1,500원
목차
없음
본문내용
Computing 3D Depth
- Find the disparity map for the stereo image pairs
(Limg1.bmp, Rimg1.bmp), (Limg2.bmp, Rimg2.bmp)
- Copy the images files to C drive.
- Window size: 7x7, and 21x21, Search range: 30 pixels
- Refer to sample.cpp
- Discuss on the effect of the size of the window
- Discuss the difficulty of the stereo matching.
- Why is the resulting disparity map poor?
<중 략>
void CHomework::OnBnClickedStereo()
{
// 2개의 영상 Limg, Rimg를 Load한다.
// Disparity_Map 함수를 통해 두 영상의 Disparity map을 저장한다.
// 함수에서 사용되는 Window size는 7X7, 21X21을 사용하여 결과를 비교한다.
int w, h, x0, y0;
BYTE **Limg, **Rimg, **Image;
// 첫 번째 영상 Limg1을 저장한다.
Display_BMP_File("c:\\Limg1.bmp", 0, 0);
// 마지막 영상 정보 읽기
GetCurrentImageInfo(&w, &h, &x0, &y0);
// 배열의 메모리 동적 할당(Byte)
Limg = cmatrix(h, w);
// 마지막 영상인 회색조 영상을 읽어서 Limg에 저장한다.
GetCurrentImageGray(Limg);
// 두 번째 영상 Rimg1을 저장한다.
Display_BMP_File("c:\\Rimg1.bmp", w, 0);
// 마지막 영상 정보 읽기
GetCurrentImageInfo(&w, &h, &x0, &y0);
참고 자료
영상처리를 위한 C++ 프로그래밍 / 이대호, 박영태 저 / 인터비젼 / 스테레오 정합 P.341 ~ 345
Digital Image Processing / 2nd Ed / R.C. Gonzalez and R.E. Woods