ComfyUI Node
DepthScaleAnchor
Robustly aligns a depth map to a reference depth via disparity-domain scale(+shift).
DepthScaleAnchor
- new_depth
- ref_depth
- valid_mask
- aligned_depth
- scale
- shift
◄modescale_shift►
CategoryCamera/World
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| new_depth | TENSOR | Depth map to be aligned (any shape). | |
| ref_depth | TENSOR | Reference metric depth map (same shape). | |
| valid_mask | MASK | 1.0 where both depths are trustworthy. | |
| mode | COMBO | scale_shift | Fit scale only, or scale + shift, in disparity (1/d) domain. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| aligned_depth | TENSOR | — |
| scale | FLOAT | — |
| shift | FLOAT | — |