본문 바로가기

Computer Vision/NeRF

[NeRF Code] 1. Data Representation

1.1 Colab Setting 및 Config

 

1.2 데이터셋 준비와 전처리

1) transform_test.json 

- Blender Camera Data = Viewing every angle Data 

- Data Format : {"camera_angle_x", "frames" : [{"file_path", "rotation","transform_matrix" : (4x4)},...]}

- Image Shape : (800, 800, 4) # RGBA

 

(1) camer_angle_x : Camera lens horizontal field of view = 카메라의 Focal 값 = 화각을 나타내는 intrinsic parameter (모두 동일값)

(2) rotation : radians(degree) = 카메라 제자리 회전 값(모두 동일값)

(3) transform_matrix(Wolrdspace transformation matrix, matrix_word(blender)) = 카메라 월 좌표계 및 상대 Rotation 정보 = 카메라 좌표계로부터 공간 좌표계로의 변환 정보를 나타내는 extrinsic parameter

- 통상적으로 rotation matrix , translation vector  을 이용해    matrix 로 나타내진다.

- 마지막 [0,0,0,1]은 4D homogeneous coordinate 상의 계산을 위한 dummy 값이다.

transform_matrix

 

2) ./data/nerf_llff_data/fern (.JPG)

- forward viewing scene data -> 총 20개

- Image Shape : (3024, 4032, 3) # RGB

 

3) def load_blender_data

 

1.3 Camera Pose

 

 

Code : 1. Data Representation.ipynb - Colaboratory (google.com)

 

Google Colaboratory Notebook

Run, share, and edit Python notebooks

colab.research.google.com