Namespace: Rx::LFR – Class: CCudaCompute – Header: Rx.LFR/CudaCompute.h
CCudaCompute::ComputeImage_PointCloud Method
C++
bool ComputeImage_PointCloud(Rx::ELFSpace targetSpace)
Calculates the point cloud image.
This creates a RGBA float image where each pixel describes a 3D color point from the given space. The R channel is the X coordinate, the G channel is the Y coordinate and the B channel is the Z coordinate. All coordinate values are given in millimeters.
The A channel describes the color of the point. Via OpenGL you can extract the color with the following methods: unpackUnorm4x8(floatBitsToUint(A)).
Result image:
- EImage::PointCloud_VirtualDistortedOrthographic (if targetSpace == Rx::ELFSpace::VirtualDistortedOrthographic)
- EImage::PointCloud_Object (if targetSpace == Rx::ELFSpace::Object) or
- EImage::PointCloud_Reference (if targetSpace == Rx::ELFSpace::Reference)
Parameters
[Rx::ELFSpace] targetSpace |
(Optional) The space to project into. This is Rx::ELFSpace::VirtualDistortedOrthographic or Rx::ELFSpace::Object. |
Returns
bool |
True if the resulting images have been updated, false if not. |