Datasets:
Add Real4D metadata: docs/DATA_FORMAT.md
Browse files- docs/DATA_FORMAT.md +76 -0
docs/DATA_FORMAT.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Real4D data format
|
| 2 |
+
|
| 3 |
+
## Paths
|
| 4 |
+
|
| 5 |
+
The first path component identifies the source subset (`dynerf` for N3DV or
|
| 6 |
+
`meetroom`), followed by a scene. Within each scene, modalities are grouped so
|
| 7 |
+
that large subsets can be downloaded independently.
|
| 8 |
+
|
| 9 |
+
For trajectory `cam00_01` and zero-based frame index `i`, use file number
|
| 10 |
+
`i + 1`:
|
| 11 |
+
|
| 12 |
+
```text
|
| 13 |
+
images/cam00_01/cam00_01_000001.jpg
|
| 14 |
+
depths/cam00_01/cam00_01_000001.jpg.geometric.png
|
| 15 |
+
depth_vis/cam00_01/cam00_01_000001.jpg
|
| 16 |
+
camera_params/cam00_01.json # entry 0
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
## RGB
|
| 20 |
+
|
| 21 |
+
RGB frames are 8-bit three-channel JPEG files. N3DV-derived frames have size
|
| 22 |
+
1352 x 1014; MeetRoom-derived frames have size 1280 x 720.
|
| 23 |
+
|
| 24 |
+
## Depth
|
| 25 |
+
|
| 26 |
+
Depth files are single-channel 16-bit PNG images. A stored value `d` represents
|
| 27 |
+
`d / 1000` meters. Value zero is the invalid mask and indicates negligible
|
| 28 |
+
accumulated opacity. These values are rendered pseudo-labels derived from the
|
| 29 |
+
reconstructed dynamic scene, not measurements from a depth sensor.
|
| 30 |
+
|
| 31 |
+
```python
|
| 32 |
+
from PIL import Image
|
| 33 |
+
import numpy as np
|
| 34 |
+
|
| 35 |
+
depth_mm = np.asarray(Image.open(depth_path), dtype=np.uint16)
|
| 36 |
+
valid = depth_mm > 0
|
| 37 |
+
depth_m = depth_mm.astype(np.float32) / 1000.0
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
`depth_vis` is only a colorized preview and must not be used as numeric depth.
|
| 41 |
+
|
| 42 |
+
## Camera manifest
|
| 43 |
+
|
| 44 |
+
Each `<trajectory>.json` is a list of 300 dictionaries in temporal order. The
|
| 45 |
+
main fields are:
|
| 46 |
+
|
| 47 |
+
| Field | Meaning |
|
| 48 |
+
|---|---|
|
| 49 |
+
| `timestamp` | Scene time in seconds. |
|
| 50 |
+
| `w2c` | 4 x 4 world-to-camera homogeneous transform. |
|
| 51 |
+
| `R` | 3 x 3 rotation component used by the renderer. |
|
| 52 |
+
| `T` | 3-vector translation component used by the renderer. |
|
| 53 |
+
| `fl_x`, `fl_y` | Focal lengths in pixels. |
|
| 54 |
+
| `cx`, `cy` | Principal point in pixels. |
|
| 55 |
+
| `FoVx`, `FoVy` | Horizontal and vertical field of view in radians. |
|
| 56 |
+
| `width`, `height` | Image dimensions in pixels. |
|
| 57 |
+
| `image_name` | Source reference-camera identifier; not an output filename. |
|
| 58 |
+
|
| 59 |
+
The camera matrix is analytically prescribed along the interpolation path. It
|
| 60 |
+
is exact with respect to that virtual trajectory; it is not an SfM/SLAM
|
| 61 |
+
estimate. Load the JSON record at list index `i` together with file number
|
| 62 |
+
`i + 1`.
|
| 63 |
+
|
| 64 |
+
## Trajectories
|
| 65 |
+
|
| 66 |
+
`cam{a}_{b}` denotes the ordered interpolation from reference camera `a` to
|
| 67 |
+
reference camera `b`. Because the pair is ordered, `cam00_01` and `cam01_00`
|
| 68 |
+
are distinct. `cam00_00` is a static-viewpoint temporal sequence. Every
|
| 69 |
+
trajectory contains 300 frames spanning the scene's 10-second temporal extent.
|
| 70 |
+
|
| 71 |
+
## Preview videos
|
| 72 |
+
|
| 73 |
+
`video/<trajectory>_rgb.mp4` and `video/<trajectory>_depth.mp4` are provided for
|
| 74 |
+
quick browsing at 30 fps. They are convenience derivatives; image sequences
|
| 75 |
+
and camera JSON are the authoritative data.
|
| 76 |
+
|