Namespace: Rx::LFR – Class: CCudaCompute – Header: Rx.LFR/CudaCompute.h
CCudaCompute Class
#include "Rx.LFR/CudaCompute.h"
class CCudaCompute : public CParametersPimpl<CCudaCompute_Impl, ECudaComputeParam, ECudaComputeInterface>
Provides methods for using a CUDA device as the computation unit of the LFR. This class implements the image processing pipeline and gives access to the image results.
Constructors
CCudaCompute() | |
CCudaCompute(cudaCompute) |
Destructor
~CCudaCompute() |
Methods
SetCudaDevice(cudaDevice) | Sets the CUDA device that allocates the memory required for the operations and that runs the algorithms. |
GetCudaDevice() | Gets the CUDA device that has been set by calling SetCudaDevice. Throws an exception if not set yet. |
HasCudaDevice() | Queries if a CUDA device has been set. |
SynchronizeDefaultStream() | Synchronizes the default CUDA stream to ensure that all operations are finished. |
ApplyRayImage(rayImage) | Applies the given ray image. |
ApplyCalibration(calibration, uploadGrayImg) | Applies the given calibration to the algorithms. This must be done every time the calibration changes. |
UploadRawImage(sourceImage) | Uploads the given image as the new raw image of all computations. |
SetComputationFilterMask(image) | Sets the computation filter mask image. |
SetComputationFilterMask(filename) | Sets the computation filter mask image. |
RemoveComputationFilterMask() | Removes the computation filter mask set by SetComputationFilterMask. |
ReinitializeDepthDB() | Reinitializes the depth database. |
Project(targetPoints, sourcePoints, targetSpace, sourceSpace, format, targetInVd, sourceInVd) | Projects an array of points from the given source space into the given target space. |
Project(targetPoints, sourcePoints, targetSpace, sourceSpace, targetInVd, sourceInVd) | Projects an array of points from the given source space into the given target space. |
Project(targetPoints, sourcePoints, targetSpace, sourceSpace, format) | Projects an array of points from the given source space into the given target space. |
Project(targetPoints, sourcePoints, targetSpace, sourceSpace) | Projects an array of points from the given source space into the given target space. |
GetSensorPointsFromVirtualDistortedOrthographic_s(rawPoints, sourceX, sourceY, sourceZ, radius_lu) | Projects the given 3D point given in virtual space in sensor frame in millimeters through all suitable micro lenses. |
GetSensorPointsFromVirtualDistortedOrthographic_s(rawPoints, sourceX, sourceY, sourceZ, radius_lu, minAllowedDistanceToLensBorder_px) | Projects the given 3D point given in virtual space in sensor frame in millimeters through all suitable micro lenses. |
GetVirtualDistortedOrthographic_sFromSensor(targetX, targetY, targetZ, sourceX, sourceY, sourceZ) | Projects from the given pixel position in the raw image with the given virtual depth through the micro lenses into virtual space. |
GetCameraFormat() | Gets the pointer to the internal camera format. Only for internal purposes. |
GetProjectionSystem() | Gets the pointer to the internal projection system. Only for internal purposes. |
MapUnit_PCT_VD(value) | Maps a percentage value to a virtual depth value in the range of _percentage_0_VD and _percentage_100_VD. |
MapUnit_VD_PCT(value) | Maps a virtual depth value to a percentage value in the range of _percentage_0_VD and _percentage_100_VD. |
GetCurrentImageID() | Gets current image identifier. |
ComputeImage_RawProcessed() | Pre-Process the raw image. This can apply denoise, brightness and sharpness adjustments. |
ComputeImage_CalibrationGrid() | Calculates the calibration grid image. This is the raw or the gray image with an overlay that shows the current grid calibration. |
ComputeImage_Refocus() | Focus image to a plane perpendicular to the optical axis, i.e. parallel to the image plane. |
ComputeImage_RawDepth() | Estimates the depth of the current raw image and creates the ray depth image. |
ComputeImage_RawDepthColored() | Calculates the colored depth raw image. |
ComputeImage_RawDepthConfidenceColored() | Calculates the depth confidence colored. |
ComputeImage_DepthMapConfidenceColored() | Calculates the depth 3D confidence colored map. |
ComputeImage_Depth3D(targetSpace) | Calculates the depth 3D image. |
ComputeImage_PointCloud(targetSpace) | Calculates the point cloud image. |
ComputeImage_DepthMapColored() | Calculates the colored depth map image. |
ComputeImage_TotalFocus() | Focus on a depth surface. |
ComputeImage_Multiview() | Calculates the multi view image. |
Compute_Histogram(imageId, histogram, channels) | Calculates the histogram of the image with the given image ID and stores the histogram data in the given array. This array must be large enough to hold 4 * 256 numbers. The number of calculated channels is returned in uChannels. |
Compute_ImageMinMax(imageId, channel, min, max) | Calculates the minimum and the maximum value in the given image. |
ProjectInto3DSpace(targetSpace) | Project into 3D space. |
ResizeImage(targetImage, sourceImage, divisor) | Resize the given source image and store the result in the given target image using the given divisor. |
CreateFocusImageFormat(rawImageFormat, forceLandscape) | Creates the image format of the refocus and the total focus image. This considers the Focus_ImageDivisor parameter. |
Upload(imageId, image) | Uploads the given image onto the CUDA device. |
Upload(imageId, image) | Uploads the given image onto the CUDA device. |
Download(imageId, image) | Downloads the image defined by eImgID. |
DownloadPointCloud(spaceId, pointPosition, pointColor) | Downloads the point cloud. |
IsValid(imageId) | Query if the image defined by imageId is valid. |
IsDataValid(imageId) | Queries of the data for the given image is valid and up-to-date. |
GetImageFormat(imageId) | Gets the image format of the image defined by the given ID. |
Free(imageId) | Frees memory used by image defined by imageId. This invalidates the image. |
FreeAll() | Frees the memory used by all images. This invalidates all images. |
GetCudaImage(imageId) | Returns a CUDA image that wraps the internal image data (pointer + info) defined by the given ID. |
ResetReferencePlane() | Resets the reference plane. |
GetParams() | Returns the parameters class that can be used to work with parameters of this class. (Inherited from CParametersPimpl) |
GetParams() | Returns the constant parameters class that can be used to work with parameters of this class. (Inherited from CParametersPimpl) |
GetImpl() | Gets the non constant implementation. (Inherited from CPimpl) |
GetImpl() | Gets the constant implementation. (Inherited from CPimpl) |
GetInterface(eInterface) | Gets the interface defined by the given interface ID. (Inherited from CPimpl) |
GetInterface(eInterface) | Gets the interface defined by the given interface ID. (Inherited from CPimpl) |
GetInterface(eInterface) | Gets the interface defined by the given interface ID. (Inherited from CPimpl) |
GetInterface(eInterface) | Gets the interface defined by the given interface ID. (Inherited from CPimpl) |
HasInterface(eInterface) | Queries if this object has the given interface. (Inherited from CPimpl) |
Operators
operator=(cudaCompute) | Move assignment operator. |
Typedefs
EnumType | The type of the parameter enum. Is used by managed wrapper classes. (Inherited from CParametersPimpl) |
EnumInterfaceType | The type of the interface enum. Is used by managed wrapper classes. (Inherited from CParametersPimpl) |