시차맵을 생성하기 위해, 제1 이미지 및 제2 이미지에 기초하여 초기 시차맵을 생성하고, 제1 이미지에 기초하여 엣지 이미지를 생성하며, 초기 시차맵 및 엣지 이미지에 기초하여 엣지 이미지 내의 픽셀들 중 타겟 픽셀을 결정하고, 타겟 픽셀에 기초하여 설정된 엣지 이미지 내의 제1 타겟 영역의 제1 대표 값을 결정하고, 제1 타겟 영역에 대응하는 초기 시차맵의 제2 타겟 영역의 제2 대표 값을 결정하고, 제1 대표 값 및 제2 대표 값을 미리 학습된 알고리즘에 입력함으로써 타겟 픽셀에 대한 타겟 시차 값을 결정하고, 타겟 시차 값에 기초하여 초기 시차맵을 갱신함으로써 타겟 시차맵을 생성한다.