Refactor depth-related tests and improve parameter handling in image cutout symmetry

This commit is contained in:
2026-09-17 00:12:57 +08:00
parent 78bbff6351
commit c681d51fd1
20 changed files with 291 additions and 239 deletions

View File

@@ -52,6 +52,20 @@ Depth Mask 的删除 MUST 按面判定:面中心的采样低于 Mask Threshold
- **WHEN** Depth Mask 删除整片面
- **THEN** 输出的边都至少属于一个保留面,没有只由删除残留形成的边
### Requirement: Panorama 的无效面落到 Dome Radius
`O Image Depth Panorama` 的 `Dome Radius` MUST 同时承担两个作用:Depth Scale 为 0 时的球半径,以及 Depth Mask 关闭时被保留的无效面所落到的距离。无效判定 MUST 复用同一次 Mask Threshold 比较,MUST NOT 另行采样或按深度通道判断。输出半径 MUST 为 `Dome Radius + Depth Scale × (d − Dome Radius)`,`d` 为有效点的距离采样。
#### Scenario: 关闭 Depth Mask 保留无效区
- **WHEN** Depth Mask 关闭,且存在 alpha 低于 Mask Threshold 的面
- **THEN** 这些面整片落在 Dome Radius,其余面保持自身距离
#### Scenario: Depth Scale 为 0
- **WHEN** Depth Scale 为 0
- **THEN** 输出是半径为 Dome Radius 的球面
### Requirement: 原画幅外框的平滑保护独立于切口规则
`O Image Depth Plane` 的原画幅外框(UV 边距为 0 的点)MUST 继续作为 `smooth_boundary_camera` 与 `smooth_cut_boundary` 的保护范围,边界带平滑 MUST NOT 因此改变切口规则的覆盖范围。