Nodes/camera-comfyUI/DepthScaleAnchor
ComfyUI Node

DepthScaleAnchor

Robustly aligns a depth map to a reference depth via disparity-domain scale(+shift).

By Alexankharin·Created about a year ago·Updated 22 days ago· 35
DepthScaleAnchor
  • new_depth
  • ref_depth
  • valid_mask
  • aligned_depth
  • scale
  • shift
modescale_shift
CategoryCamera/World

Inputs (4)

NameTypeDefaultDescription
new_depthTENSORDepth map to be aligned (any shape).
ref_depthTENSORReference metric depth map (same shape).
valid_maskMASK1.0 where both depths are trustworthy.
modeCOMBOscale_shiftFit scale only, or scale + shift, in disparity (1/d) domain.

Outputs (3)

NameTypeDescription
aligned_depthTENSOR
scaleFLOAT
shiftFLOAT