Depth

GTDepthImageGeneratorComponent

Generates depth images. Uses planar depth as default setting, perspective depth can be enabled via bUsePerspectiveDepth.
The depth is encoded in millimeters (mm) in the RGB channels of the image. This means the depth value is a 24bit with a maximum value of 16.777216 km. (TODO add nanometer option). The RGB values can be converted to mm using the following formula: R + G * 256 + B * 256 * 256.
See https://github.com/unrealgt/unrealgt/blob/master/Examples/PythonDepthConvert/main.py for an example.
Note: Anti-Aliasing is disabled for depth generators by default!

Properties

Depth

bool bUsePerspectiveDepth

Use perspective depth instead of planar depth.

float MaxZ

Maximum depth(distance) to record.

Image

bool bRandomResolution

If enabled will choose a random resolution between Resolution and ResolutionMax for each captured image. This is useful for generating Training data.

FIntPoint ResolutionMax

The maximum Resolution to use if bRandomResolution is enabled.

bool bAntiAliasing

Perform anti aliasing when an image is rendered. Highly recommended for basic images, but might cause issues if used with segmentation or depth generators. Temporal Anti-Aliasing might cause “jittering” if the generator is not moving.

EGTImageFileFormat ImageFormat

The format the image will have, currently only .bmp and .png are supported.

FIntPoint Resolution

The resolution the generated images will have.

Projection

float FOVAngle

Camera field of view (in degrees).