blenderproc.python.postprocessing.SGMUtility module

blenderproc.python.postprocessing.SGMUtility.fill_in_fast(depth_map, max_depth=100.0, custom_kernel=None, extrapolate=False, blur_type='bilateral')[source]

Fast, in-place depth completion.

Parameters:
  • depth_map – projected depths
  • max_depth – max depth value for inversion
  • custom_kernel – kernel to apply initial dilation
  • extrapolate – whether to extrapolate by extending depths to top of the frame, and applying a 31x31 full kernel dilation
  • blur_type – ‘bilateral’ - preserves local structure (recommended), ‘gaussian’ - provides lower RMSE
Returns:

depth_map: dense depth map

blenderproc.python.postprocessing.SGMUtility.resize(img, new_size, method='nearest')[source]