Adjust colours in DistanceToCamera


Is there a possibility to adjust the colours in the DistanceToCamera or DistanceToImagePlane synthetic data generator? Because right now it is dark blue for the object on a slightly brighter blue for the background, so it is really hard to see anything.

Thank you

Hi there,

DistanceToCamera or DistanceToImagePlane return a 2d array of np.float32 using 1 channel, and do not have any parameterization properties.

You can however modify the data either by using a custom writer or by postprocessing the saved data. For example the kitti writer (omni/replicator/core/scripts/writers_default/ -> _write_distance_to_camera) saves the data as np.uint16.

Or accessing the annotator data directly using get_data().