Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -21,21 +21,23 @@ Disparity maps for stereo matching, generated from the [Stereo4D](https://github
|
|
| 21 |
```
|
| 22 |
data/train/
|
| 23 |
metadata.csv
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
...
|
| 29 |
```
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
| 33 |
|
| 34 |
### Metadata Columns
|
| 35 |
|
| 36 |
| Column | Description |
|
| 37 |
|---|---|
|
| 38 |
-
| `file_name` |
|
|
|
|
| 39 |
| `vid_id` | Clip identifier (matches the `.npz` calibration file) |
|
| 40 |
| `frame_idx` | Frame index in the rectified stereo output |
|
| 41 |
| `youtube_video_id` | YouTube video ID of the source 360 video |
|
|
@@ -60,17 +62,28 @@ This dataset contains **disparity maps only**. Due to the copyrights of these vi
|
|
| 60 |
|
| 61 |
### Camera Parameters
|
| 62 |
|
| 63 |
-
The
|
| 64 |
|
| 65 |
-
| Parameter | Value |
|
| 66 |
-
|---|---|---|
|
| 67 |
-
|
|
| 68 |
-
|
|
| 69 |
-
| fx, fy |
|
| 70 |
-
| cx, cy | 392 px | Image center |
|
| 71 |
|
| 72 |
Depth is derived as: `depth = fx * baseline / disparity`.
|
| 73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
|
| 75 |
## Citation
|
| 76 |
|
|
|
|
| 21 |
```
|
| 22 |
data/train/
|
| 23 |
metadata.csv
|
| 24 |
+
0000000.zip (first 50,000 images)
|
| 25 |
+
0000001.zip (next 50,000 images)
|
| 26 |
+
...
|
| 27 |
+
0000025.zip
|
|
|
|
| 28 |
```
|
| 29 |
|
| 30 |
+
Each zip contains disparity PNG files named `{vid_id}_frame_{frame_idx:06d}.png`.
|
| 31 |
+
|
| 32 |
+
- **Disparity images**: 3-channel uint8 784×784 PNG files encoding per-pixel disparity. Decode with: `disp = (R * 255*255 + G * 255 + B) / 1000.0`. See also: https://github.com/NVlabs/FoundationStereo/blob/master/scripts/vis_dataset.py
|
| 33 |
+
- **metadata.csv**: Links each disparity image back to its source YouTube video, with a `zip_file` column indicating which zip contains the image.
|
| 34 |
|
| 35 |
### Metadata Columns
|
| 36 |
|
| 37 |
| Column | Description |
|
| 38 |
|---|---|
|
| 39 |
+
| `file_name` | Disparity image filename (inside the zip) |
|
| 40 |
+
| `zip_file` | Which zip file contains this image |
|
| 41 |
| `vid_id` | Clip identifier (matches the `.npz` calibration file) |
|
| 42 |
| `frame_idx` | Frame index in the rectified stereo output |
|
| 43 |
| `youtube_video_id` | YouTube video ID of the source 360 video |
|
|
|
|
| 62 |
|
| 63 |
### Camera Parameters
|
| 64 |
|
| 65 |
+
The rectified stereo pairs are generated at 1024×1024 with the following pinhole camera model:
|
| 66 |
|
| 67 |
+
| Parameter | Value (1024×1024 rectified) | Value (784×784 disparity) | Formula |
|
| 68 |
+
|---|---|---|---|
|
| 69 |
+
| HFOV | 60° | 60° | `output_hfov` in `batch_rectify.py` |
|
| 70 |
+
| Baseline | 0.063 m | 0.063 m | Assumed interpupillary distance for VR180 cameras |
|
| 71 |
+
| fx, fy | 886.8 px | 678.8 px | `size * 0.5 / tan(0.5 * HFOV * pi/180)` |
|
| 72 |
+
| cx, cy | 512 px | 392 px | Image center |
|
| 73 |
|
| 74 |
Depth is derived as: `depth = fx * baseline / disparity`.
|
| 75 |
|
| 76 |
+
Since disparity is computed at 784×784 resolution (scale factor 784/1024 = 0.765625 of the 1024×1024 input), use the 784×784 camera parameters when converting disparity to depth:
|
| 77 |
+
|
| 78 |
+
```python
|
| 79 |
+
import numpy as np
|
| 80 |
+
hfov = 60 # degrees
|
| 81 |
+
baseline = 0.063 # meters
|
| 82 |
+
imw = 784
|
| 83 |
+
fx = imw * 0.5 / np.tan(0.5 * np.radians(hfov)) # 678.8 px
|
| 84 |
+
depth = fx * baseline / disparity
|
| 85 |
+
```
|
| 86 |
+
|
| 87 |
|
| 88 |
## Citation
|
| 89 |
|