Namespace: Rx::LFR – Class: CCudaCompute – Header: Rx.LFR/CudaCompute.h

CCudaCompute::ComputeImage_Depth3D Method

C++
bool ComputeImage_Depth3D(Rx::ELFSpace targetSpace)

Calculates the depth 3D image.

This creates a RGBA float image which maps each pixel in the view camera to a 3D position in object space. The R channel is the X coordinate, the G channel is the Y coordinate and the B channel is the Z coordinate. The Z coordinate is relative to the global coordinate system which typically coincides with the light field camera sensor. All coordinate values are given in millimeters. The A channel is set depending on Rx::LFR::ECudaComputeParam::Depth3D_FourthChannelContent.

Result image:

Parameters

[Rx::ELFSpace] targetSpace

(Optional) The target space. This is Rx::ELFSpace::VirtualDistortedOrthographic or Rx::ELFSpace::Object or Rx::ELFSpace::Reference.

Returns

bool

True if the resulting images have been updated, false if not.