blenderproc.python.modules.postprocessing.Dist2Depth module

class blenderproc.python.modules.postprocessing.Dist2Depth.Dist2Depth(config)[source]

Bases: blenderproc.python.modules.main.Module.Module

Transforms Distance Image Rendered using Mist/Z pass to a depth image.

Configuration:

Parameter Description Type
depth_output_key The key which should be used for storing the output data in a merged file. Default: ‘depth’. string
run(dist, key, version)[source]
Parameters:
  • dist – The distance data.
  • key – The key used to store distance data.
  • version – Version of the produced distance data.
Returns:

The depth data, an appropriate key and version.