ComfyUI Node
Depth Metric to Relative
Convert metric/raw depth to relative 0-1 range. Works with any depth source. Use gamma to adjust brightness bias.
Depth Metric to Relative
- depth
- relative_depth
◄per_imagetrue►
◄inverttrue►
◄gamma1.00►
CategoryRefocus/Depth
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| depth | IMAGE | — | |
| per_imageopt | BOOLEAN | true | Normalize each image in batch independently |
| invertopt | BOOLEAN | true | Invert so near=bright, far=dark (standard for ControlNet) |
| gammaopt | FLOAT | 1.000.01–10 | Gamma correction: >1 = brighter midtones, <1 = darker |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| relative_depth | IMAGE | — |