Raytrix Light Field SDK
5.0
|
API LF class.
Static Public Member Functions | |
static System::Object ^ | GetInterface (Interfaces::EApiLF eInterface) |
Gets the interface defined by the given interface ID. More... | |
template<typename TInterface > | |
static TInterface | GetInterface (Interfaces::EApiLF eInterface) |
Gets the interface defined by the given interface ID. More... | |
static void | RxCalibDBAssignGrayImageToBoundCalib (System::String^ sGUID, bool bLoadGrayImg) |
Assign the gray image of the calibration with the given GUID to the bound calibration. This copies the gray image. More... | |
static void | RxCalibDBBindCalib (System::String^ sGUID, bool bApplyGrayImage) |
Applies the camera calibration defined by GUID sxGUID to the currently bound image in API. Also updates the computational class. More... | |
static void | RxCalibDBBindCalibGrayImage (RX_OUT unsigned % uImgID, System::String^ sGUID) |
Bind gray image of calibration to API and use this image as gray image too. Now you can calibrate a calibration without using a camera. More... | |
static System::String ^ | RxCalibDBBoundCameraNewCalib () |
Creates a new calibration and returns the GUID of the newly created calibration. More... | |
static System::String ^ | RxCalibDBCameraNewCalib (unsigned uCamIdx) |
Creates a new calibration and returns the GUID of the newly created calibration. More... | |
static void | RxCalibDBCreateDataBase (System::String^ sCamHardwareId, bool bForce) |
Creates a new calibration database for camera with name sxCamHardwareId. More... | |
static void | RxCalibDBCreateDataBaseForBoundCamera (bool bForce) |
Creates a new calibration database for bound camera. More... | |
static void | RxCalibDBCreateDataBaseForCamera (unsigned uCamIdx, bool bForce) |
Creates a new calibration database for camera with ID uCamIdx More... | |
static void | RxCalibDBDeleteCalib (System::String^ sGUID) |
Deletes a camera calibration using its GUID. More... | |
static void | RxCalibDBGetCameraCalibGuidList (RX_OUT array< System::String^>^ % asGUIDs, unsigned uCamIdx) |
Gets an array<string> which contains unique IDs of all calibration for camera with given index uCamIdx. More... | |
static void | RxCalibDBGetCameraMasterCalibGuid (RX_OUT System::String ^ % sGUID, unsigned uCamIdx) |
Gets a string which contains the GUID of the master calibration of this camera. More... | |
static void | RxCalibDBGetCompleteCalibGuidList (RX_OUT array< System::String^>^ % asGUIDs) |
Gets an array<string> which contains GUIDs of all calibration on this computer. More... | |
static void | RxCalibDBGetCompleteMasterCalibGuidList (RX_OUT array< System::String^>^ % asGUIDs) |
Gets a string array which contains GUIDs of all master calibration on this computer. More... | |
static void | RxCalibDBLoadBoundCalibMetaData (RX_OUT Rx::Net::CalibMetaData ^ % xCalibData) |
Gets the last applied calibration data. More... | |
static void | RxCalibDBLoadCalibMetaData (RX_OUT Rx::Net::CalibMetaData ^ % xCalibData, System::String^ sGUID) |
Gets Rx::Net::CalibMetaData for calibration with given GUID sGUID. More... | |
static System::String ^ | RxCalibDBNewCalib (System::String^ sCamHardwareId) |
Creates a new calibration and returns the GUID of the newly created calibration. More... | |
static void | RxCalibDBReloadBoundCalib (bool bApplyGrayImage) |
Applies the currently bound camera calibration to the current bound image in API. Also updates to the computational class. More... | |
static void | RxCalibDBSaveBoundCalibMetaData (Rx::Net::CalibMetaData^ xCalibData) |
Sets calibration data to the last applied calibration. More... | |
static void | RxCalibDBSaveCalibMetaData (Rx::Net::CalibMetaData^ xCalibData, System::String^ sGUID) |
Sets Rx::Net::CalibMetaData for calibration with given GUID sGUID. Only certain parameters will be considered. The GUID, camera serial and camera type cannot be set. More... | |
static void | RxCalibDBUpdateAndSaveBoundCalib () |
Gets calibration (The camera calibration) from current bound image and saves it to current calibration. Also saves database to disk. More... | |
static void | RxCalibDBUpdateAndSaveCalib (System::String^ sGUID) |
Gets (The camera calibration) from current bound image and saves it to the calibration defined by GUID sxGUID Also saves database to disk. More... | |
static unsigned | RxCamBind (unsigned uCamIdx) |
Binds the given camera to the returned API image ID. Call RxCamUnBind to unbind the bound camera. Only one camera can be bound. Calling Rx::LFR::Net::ApiLF::RxCamBind with another camera index results in an System::Exception. More... | |
static void | RxCamClose (unsigned uCamIdx) |
Closes the given camera. If the given camera is currently bound, the camera is unbound before closing. Also, if the camera is in capture mode, the capturing is stopped before unbinding. More... | |
static void | RxCamGetPar (Rx::InteropNet::Runtime30::Camera::EProperty ePar, RX_OUT array< System::String^>^ % aValue) |
Get camera parameter of type Rx::CRxArrayString. More... | |
static void | RxCamGetPar (Rx::InteropNet::Runtime30::Camera::EProperty ePar, RX_OUT double % dValue) |
Get camera parameter of type double from the currently bound camera. More... | |
static void | RxCamGetPar (Rx::InteropNet::Runtime30::Camera::EProperty ePar, RX_OUT System::String^ % sValue) |
Get a camera parameter of type Rx::CRxString from the currently bound camera. More... | |
static void | RxCamGetPar (Rx::InteropNet::Runtime30::Camera::EProperty ePar, RX_OUT unsigned % uValue) |
Get a camera parameter of type unsigned integer from the currently bound camera. More... | |
static void | RxCamGetPar (unsigned uCamIdx, Rx::InteropNet::Runtime30::Camera::EProperty ePar, RX_OUT array< System::String^>^ % aValue) |
Get camera parameter of type Rx::CRxArrayString. More... | |
static void | RxCamGetPar (unsigned uCamIdx, Rx::InteropNet::Runtime30::Camera::EProperty ePar, RX_OUT double % dValue) |
Get camera parameter of type double More... | |
static void | RxCamGetPar (unsigned uCamIdx, Rx::InteropNet::Runtime30::Camera::EProperty ePar, RX_OUT System::String^ % sValue) |
Get a camera parameter of type Rx::CRxString. More... | |
static void | RxCamGetPar (unsigned uCamIdx, Rx::InteropNet::Runtime30::Camera::EProperty ePar, RX_OUT unsigned % uValue) |
Get a camera parameter of type unsigned integer. More... | |
static void | RxCamGetParRange (Rx::InteropNet::Runtime30::Camera::EProperty ePar, RX_OUT array< unsigned >^ % auValues) |
Get set of available values for parameter of type unsigned. More... | |
static void | RxCamGetParRange (Rx::InteropNet::Runtime30::Camera::EProperty ePar, RX_OUT double % dMin, RX_OUT double % dMax) |
Get the parameter range of a camera parameter of type double from the currently bound camera. More... | |
static void | RxCamGetParRange (Rx::InteropNet::Runtime30::Camera::EProperty ePar, RX_OUT unsigned % uMin, RX_OUT unsigned % uMax) |
Get the parameter range of a camera parameter of type unsigned integer from the currently bound camera. More... | |
static void | RxCamGetParRange (unsigned uCamIdx, Rx::InteropNet::Runtime30::Camera::EProperty ePar, RX_OUT array< unsigned >^ % auValues) |
Get a set of available values for a parameter of type unsigned integer. More... | |
static void | RxCamGetParRange (unsigned uCamIdx, Rx::InteropNet::Runtime30::Camera::EProperty ePar, RX_OUT double % dMin, RX_OUT double % dMax) |
Get the parameter range of a camera parameter of type double. More... | |
static void | RxCamGetParRange (unsigned uCamIdx, Rx::InteropNet::Runtime30::Camera::EProperty ePar, RX_OUT unsigned % uMin, RX_OUT unsigned % uMax) |
Get the parameter range of a camera parameter of type unsigned integer. More... | |
static bool | RxCamIsParameterSupported (Rx::InteropNet::Runtime30::Camera::EProperty ePar) |
Test whether a camera parameter is supported by the currently bound camera. More... | |
static bool | RxCamIsParameterSupported (Rx::InteropNet::Runtime30::Camera::EProperty ePar, unsigned uCamIdx) |
Test whether a camera parameter is supported by the given camera. More... | |
static void | RxCamOpen (unsigned uCamIdx) |
Opens the given camera. Camera settings can only be accessed after a camera has been opened. The first call to open initializes the camera too. More... | |
static void | RxCamRegister () |
Register available cameras. More... | |
static bool | RxCamRetrieveImage () |
Retrieve a single image from the currently bound camera. More... | |
static void | RxCamSetPar (Rx::InteropNet::Runtime30::Camera::EProperty ePar, double dValue) |
Set a camera property of type double. More... | |
static void | RxCamSetPar (Rx::InteropNet::Runtime30::Camera::EProperty ePar, System::String^ sValue) |
Set a camera property of type Rx::CRxString from the currently bound camera. More... | |
static void | RxCamSetPar (Rx::InteropNet::Runtime30::Camera::EProperty ePar, unsigned uValue) |
Set a camera property of type unsigned integer from the currently bound camera. More... | |
static void | RxCamSetPar (unsigned uCamIdx, Rx::InteropNet::Runtime30::Camera::EProperty ePar, double dValue) |
Set a camera property of type double. More... | |
static void | RxCamSetPar (unsigned uCamIdx, Rx::InteropNet::Runtime30::Camera::EProperty ePar, System::String^ sValue) |
Set a camera property of type Rx::CRxString. More... | |
static void | RxCamSetPar (unsigned uCamIdx, Rx::InteropNet::Runtime30::Camera::EProperty ePar, unsigned uValue) |
Set a camera property of type unsigned integer. More... | |
static void | RxCamStartCapture () |
Prepares the currently bound camera for capturing images. If the currently bound camera is already in capture mode, then the function throws an exception. More... | |
static void | RxCamStopCapture () |
Stops capturing of the currently bound camera. If the camera is not in capture mode, the function simply returns without error. More... | |
static void | RxCamSuspendCapture (bool bSuspend) |
Suspend capturing images. More... | |
static void | RxCamTrigger () |
Triggers capturing of a single image of the currently bound camera. The image can be retrieved by calling Rx::LFR::Net::ApiLF::RxCamRetrieveImage. More... | |
static void | RxCamUnbind () |
Unbinds a currently bound camera. If the bound camera is still capturing images, the capturing is stopped and then the camera is unbound. More... | |
static void | RxConvertImage (Rx::Net::Image ^ % xDstImage, Rx::Net::Image^ xSrcImage, InteropNet::Runtime28::EPixelType eDstImageType, InteropNet::Runtime28::EDataType eDstDataType) |
Convert a Rx::CRxImage to a new pixel and data type. More... | |
static int | RxCudaDeviceCount () |
Returns the number of CUDA devices installed. More... | |
static void | RxCudaDeviceMemInfo (RX_OUT System::UInt64 % uFreeMem, RX_OUT System::UInt64 % uTotalMem) |
Return free and total amount of memory on the selected CUDA device. More... | |
static void | RxCudaDeviceProp (int iDevice, System::String^ % sName, unsigned % uCCMajor, unsigned % uCCMinor) |
Get the name and the compute capability major and minor version for a CUDA device. More... | |
static void | RxCudaSelectDevice (int iDevice, bool bUseGL) |
Select a CUDA device. More... | |
static void | RxDepth3D () |
Object space depth 3D. More... | |
static void | RxDepthColorCode (Rx::LFR::Net::ESpace eSpace) |
Colorizes the depth map created by Rx::LFR::Net::ApiLF::RxDepthMap.The result is stored in the image with the ID Rx::LFR::Net::EImage::Depth3D. More... | |
static void | RxDepthMap (Rx::LFR::Net::ESpace eSpace) |
Creates a depth map from the ray depth image created by Rx::LFR::Net::ApiLF::RxDepthRay. More... | |
static void | RxDepthRay () |
Estimates the depth of the bound ray image and stores the result in the image with the ID Rx::LFR::Net::EImage::DepthRay. More... | |
static void | RxDongleGetID (int % iDngID, int % iRxID) |
Get the IDs of an attached dongle. More... | |
static void | RxFinalize () |
Close any open cameras and free all memory allocated on CUDA device and in host memory. More... | |
static void | RxFreeImage (Rx::LFR::Net::EImage eImgID) |
Frees memory used by image defined by eImgID This invalidates the image. More... | |
static void | RxGetImage (Rx::LFR::Net::EImage eImgID, Rx::Net::Image^ xImageIfc, bool bCreate) |
Get an internal image. More... | |
static void | RxGetImage (Rx::LFR::Net::EImage eImgID, RX_OUT Rx::Net::Image^ % xImage) |
Get an internal image. More... | |
static void | RxGetImageDevicePointer (Rx::LFR::Net::EImage eImgID, System::IntPtr % pDevicePtr) |
Get the device pointer of an internal image. More... | |
static unsigned | RxGetImageDevicePointerPitch (Rx::LFR::Net::EImage eImgID) |
Gets device pointer pitch, which is the width in bytes of the allocation. Given a row and column of an array element of type T, the address is computed as: More... | |
static void | RxGetImageFormat (Rx::LFR::Net::EImage eImgID, RX_OUT Rx::Net::ImageFormat^ % xF) |
Get the image format of an internal image. More... | |
static void | RxGetImageHistogram (Rx::LFR::Net::EImage eImgID, array< unsigned >^ % xHistogram, RX_OUT unsigned % uChannels) |
Calculates the histogram of the image with the given eImgID 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. More... | |
static void | RxGetImageMinMax (Rx::LFR::Net::EImage eImgID, unsigned uChannel, RX_OUT float % fMin, RX_OUT float % fMax) |
Finds the minimum and maximum value of the given eImgID More... | |
static void | RxGetPar (Rx::LFR::Net::Params::EApiLF ePar, RX_OUT unsigned % uValue) |
Gets the value of a parameter. More... | |
static void | RxGetPar (Rx::LFR::Net::Params::ECalib ePar, RX_OUT array< double >^ % adValue) |
Gets the value of a parameter. More... | |
static void | RxGetPar (Rx::LFR::Net::Params::ECalib ePar, RX_OUT array< System::String^>^ % asValue) |
Gets the value of a parameter. More... | |
static void | RxGetPar (Rx::LFR::Net::Params::ECalib ePar, RX_OUT array< unsigned >^ % auValue) |
Gets the value of a parameter. More... | |
static void | RxGetPar (Rx::LFR::Net::Params::ECalib ePar, RX_OUT double % dValue) |
Gets the value of a parameter. More... | |
static void | RxGetPar (Rx::LFR::Net::Params::ECalib ePar, RX_OUT System::String^ % sValue) |
Gets the value of a parameter. More... | |
static void | RxGetPar (Rx::LFR::Net::Params::ECalib ePar, RX_OUT unsigned % uValue) |
Gets the value of a parameter. More... | |
static void | RxGetPar (Rx::LFR::Net::Params::ECudaCompute ePar, RX_OUT array< double >^ % adValue) |
Gets the value of a parameter. More... | |
static void | RxGetPar (Rx::LFR::Net::Params::ECudaCompute ePar, RX_OUT array< System::String^>^ % asValue) |
Gets the value of a parameter. More... | |
static void | RxGetPar (Rx::LFR::Net::Params::ECudaCompute ePar, RX_OUT array< unsigned >^ % auValue) |
Gets the value of a parameter. More... | |
static void | RxGetPar (Rx::LFR::Net::Params::ECudaCompute ePar, RX_OUT double % dValue) |
Gets the value of a parameter. More... | |
static void | RxGetPar (Rx::LFR::Net::Params::ECudaCompute ePar, RX_OUT System::String^ % sValue) |
Gets the value of a parameter. More... | |
static void | RxGetPar (Rx::LFR::Net::Params::ECudaCompute ePar, RX_OUT unsigned % uValue) |
Gets the value of a parameter. More... | |
static void | RxGetParName (Rx::LFR::Net::Params::EApiLF ePar, RX_OUT System::String^ % aValue) |
Get the string representation of a parameter. More... | |
static void | RxGetParName (Rx::LFR::Net::Params::ECalib ePar, RX_OUT System::String^ % aValue) |
Get the string representation of a parameter. More... | |
static void | RxGetParName (Rx::LFR::Net::Params::ECudaCompute ePar, RX_OUT System::String^ % aValue) |
Get the string representation of a parameter. More... | |
static void | RxGetParProperties (Rx::LFR::Net::Params::EApiLF ePar, RX_OUT System::String^ % sName, RX_OUT bool % bReadAccess, RX_OUT bool % bWriteAccess, RX_OUT Rx::Net::EValueType % eType) |
Get the Properties of a parameter. More... | |
static void | RxGetParProperties (Rx::LFR::Net::Params::ECalib ePar, RX_OUT System::String^ % sName, RX_OUT bool % bReadAccess, RX_OUT bool % bWriteAccess, RX_OUT Rx::Net::EValueType % eType) |
Get the Properties of a parameter. More... | |
static void | RxGetParProperties (Rx::LFR::Net::Params::ECudaCompute ePar, RX_OUT System::String^ % sName, RX_OUT bool % bReadAccess, RX_OUT bool % bWriteAccess, RX_OUT Rx::Net::EValueType % eType) |
Get the Properties of a parameter. More... | |
static void | RxGetParRange (Rx::LFR::Net::Params::EApiLF ePar, RX_OUT unsigned % uMin, RX_OUT unsigned % uMax) |
Get the value range of a parameter. More... | |
static void | RxGetParRange (Rx::LFR::Net::Params::ECalib ePar, RX_OUT double % dMin, RX_OUT double % dMax) |
Get the value range of a parameter. More... | |
static void | RxGetParRange (Rx::LFR::Net::Params::ECalib ePar, RX_OUT int % iMinCount, RX_OUT int % iMaxCount, RX_OUT double % dMin, RX_OUT double % dMax) |
Get the value range of an array parameter and the min and max allowed number of elements in the array. More... | |
static void | RxGetParRange (Rx::LFR::Net::Params::ECalib ePar, RX_OUT int % iMinCount, RX_OUT int % iMaxCount, RX_OUT unsigned % uMin, RX_OUT unsigned % uMax) |
Get the value range of an array parameter and the min and max allowed number of elements in the array. More... | |
static void | RxGetParRange (Rx::LFR::Net::Params::ECalib ePar, RX_OUT unsigned % uMin, RX_OUT unsigned % uMax) |
Get the value range of a parameter. More... | |
static void | RxGetParRange (Rx::LFR::Net::Params::ECudaCompute ePar, RX_OUT double % dMin, RX_OUT double % dMax) |
Get the value range of a parameter. More... | |
static void | RxGetParRange (Rx::LFR::Net::Params::ECudaCompute ePar, RX_OUT int % iMinCount, RX_OUT int % iMaxCount, RX_OUT double % dMin, RX_OUT double % dMax) |
Get the value range of an array parameter and the min and max allowed number of elements in the array. More... | |
static void | RxGetParRange (Rx::LFR::Net::Params::ECudaCompute ePar, RX_OUT int % iMinCount, RX_OUT int % iMaxCount, RX_OUT unsigned % uMin, RX_OUT unsigned % uMax) |
Get the value range of an array parameter and the min and max allowed number of elements in the array. More... | |
static void | RxGetParRange (Rx::LFR::Net::Params::ECudaCompute ePar, RX_OUT unsigned % uMin, RX_OUT unsigned % uMax) |
Get the value range of a parameter. More... | |
static System::DateTime | RxGetReleaseDate () |
Gets the release date of this version of the Raytrix Light Field Runtime. Can be called without initializing the API. More... | |
static void | RxGlGetContext () |
Assigns the OpenGL context created by Rx::LFR::Net::ApiLF::RxCudaSelectDevice to the calling thread. More... | |
static unsigned | RxGlGetTextureID (Rx::LFR::Net::EImage eImgID) |
Get the OpenGl texture ID corresponding to given parameter eImgID. The content of this texture can be updated with the Rx::LFR::Net::ApiLF::RxGlUpdateTex function. More... | |
static void | RxGlGetTextureID (Rx::LFR::Net::EImage eImgID, RX_OUT unsigned % uGlTextureID) |
Get the OpenGl texture ID corresponding to given parameter eImgID. The content of this texture can be updated with the Rx::LFR::Net::ApiLF::RxGlUpdateTex function. More... | |
static void | RxGlGetVersion (int % iMajor, int % iMinor) |
Get OpenGL version of current OpenGL rendering context. More... | |
static void | RxGlReleaseContext () |
Releases the OpenGL context owned by the calling thread. More... | |
static void | RxGlSetContext () |
Store the threads current OpenGL context. The context can be retrieved with RxGlGetContext() and released with RxGlReleaseContext. More... | |
static void | RxGlUpdateTex (Rx::LFR::Net::EImage eImgID) |
Copy CUDA result images to OpenGL textures. More... | |
static void | RxGlUpdateTex (Rx::LFR::Net::EImage eImgID, bool bCreateMipmaps) |
Copy CUDA result images to OpenGL textures. More... | |
static void | RxGrid () |
Show a lens grid overlay on the raw ray image. More... | |
static bool | RxGridCalibrateMaster () |
Automatically calibrates the MLA rotation steps and the MLA reflection. Requires master dongle feature. More... | |
static bool | RxGridCalibrateMla () |
Automatically calibrates MLA grid. Requires master dongle feature. More... | |
static bool | RxGridCalibrateMli () |
Automatically calibrates MLI grid. More... | |
static void | RxGridDataImage () |
Pre Process a ray image with a minimal Set of preprocessing parameter. More... | |
static void | RxGridEnableCalibrationCallback (bool bEnable) |
Enables or disables a callback during automatic grid calibration via RxGridCalibrateMli, RxGridCalibrateMla and RxGridCalibrateMaster. More... | |
static bool | RxHasFeature (Rx::Net::ERuntimeFeature eFeatureID) |
Test whether the Dongle offers a given feature. More... | |
static bool | RxHasFeature (unsigned uFeatureIDs) |
Test whether the Dongle offers the given features. More... | |
static void | RxInit () |
Initialize the Raytrix API. More... | |
static void | RxInit (bool bInitCuda, System::String^ sLibPath, System::String^ sCalibPath) |
Initialize the Raytrix API. More... | |
static void | RxInit (System::String^ sLibPath, System::String^ sCalibPath) |
Initialize the Raytrix API. More... | |
static bool | RxIsImageValid (Rx::LFR::Net::EImage eImgID) |
Test whether an internal image is valid. More... | |
static void | RxLoadParameter (System::String^ sFilename) |
Loads all writable API parameter from file. Its mandatory to bind a light field image before. More... | |
static bool | RxLockCudaMutex (int iTimeout) |
Locks the CUDA Mutex. More... | |
static void | RxMultiview () |
Creates a multi view image and stores the result in the image with the ID Rx::LFR::Net::EImage::Multiview_ViewCamera. More... | |
static void | RxPreProcess () |
Pre-Process a ray image. More... | |
static bool | RxProject (RX_OUT array< double >^ % adTargetPoint, array< double >^ adSourcePoint, Rx::LFR::Net::ESpace eTarget, Rx::LFR::Net::ESpace eSource) |
Projects an array of points from the given source space into the given target space. More... | |
static void | RxRayBind (unsigned uRayHandle) |
Bind a ray image to perform computations on. More... | |
static void | RxRayCalibSaveXML (unsigned uRayHandle, System::String^ sFilename) |
Save calibration data of ray image in XML format. More... | |
static void | RxRayCalibXmlGet (unsigned uRayHandle, System::String^ % sXml) |
Get the calibration data of the given ray image as XML string. More... | |
static void | RxRayDelete (unsigned uRayHandle) |
Delete the image with the given ID. More... | |
static const void * | RxRayGetCameraFormat () |
Gets the pointer to the internal camera format. More... | |
static Rx::Net::ImageFormat ^ | RxRayGetFormat (unsigned uRayHandle) |
Get the image format of a ray image. More... | |
static unsigned | RxRayGetFrameID () |
Gets the frame ID of the bound light field image. Used when working with sequences or cameras. More... | |
static unsigned | RxRayGetFrameID (unsigned uRayHandle) |
Gets the frame ID of the given light field image. Used when working with sequences or cameras. More... | |
static Rx::Net::MetaData ^ | RxRayGetMetaData () |
Get the meta data of the bound ray image. More... | |
static Rx::Net::MetaData ^ | RxRayGetMetaData (unsigned uImgID) |
Get meta data of a ray image. More... | |
static Rx::Net::Image ^ | RxRayGetRaw (unsigned uRayHandle) |
Get the ray image as Rx::CRxImage instance. More... | |
static void | RxRayGetRaw (unsigned uRayHandle, Rx::Net::Image^ IRawImage, bool bCreate) |
Get the ray image. More... | |
static double | RxRayGetTimestap () |
Gets the image timestamp of the bound light field image. Is 0 if the image hasn't a valid timestamp. You can use this timestamp and the timestamp of another camera or sequence frame to determine the time between them. More... | |
static double | RxRayGetTimestap (unsigned uRayHandle) |
Gets the image timestamp of the given light field image. Is 0 if the image hasn't a valid timestamp. You can use this timestamp and the timestamp of another camera or sequence frame to determine the time between them. More... | |
static unsigned | RxRayLoad (System::String^ sFilename) |
Load a ray image. More... | |
static unsigned | RxRayNew (Rx::Net::ImageFormat^ xF) |
Create a new ray image. More... | |
static void | RxRaySave (System::String^ sFilename, bool bUpdateMetaData) |
Saves the bound light field image to the given file. More... | |
static void | RxRaySave (unsigned uRayHandle, System::String^ sFilename, bool bUpdateMetaData) |
Saves the given light field image to the given file. More... | |
static unsigned | RxRaySeqBind (unsigned uRaySeqID) |
Bind a ray sequence for use by other API functions. More... | |
static unsigned | RxRaySeqClose (unsigned uRaySeqID) |
Close a ray sequence. More... | |
static unsigned | RxRaySeqGetDoubleShotMode (unsigned uRaySeqHandle) |
Get the doubleshot mode used when recording the given sequence. More... | |
static void | RxRaySeqGetFileSize (unsigned uRaySeqID, System::UInt64 % uFileSize) |
Get the total file size of the ray sequence in bytes. More... | |
static unsigned | RxRaySeqGetFrameBufferUsedCount (unsigned uRaySeqID) |
Get number of frame buffers in use. More... | |
static unsigned | RxRaySeqGetFrameCount () |
Get number of frames in ray sequence. More... | |
static unsigned | RxRaySeqGetFrameCount (unsigned uRaySeqID) |
Get number of frames in ray sequence. More... | |
static unsigned | RxRaySeqGetFrameIndex (unsigned uRaySeqID) |
Get current frame index of ray sequence. More... | |
static bool | RxRaySeqIsBound () |
Determines if a sequence is bound for reading to the API. More... | |
static void | RxRaySeqMoveFrameIndex (unsigned uRaySeqID, int iStep) |
Move the frame index relative to the current position in the ray sequence. More... | |
static unsigned | RxRaySeqOpen (System::String^ sFilename, unsigned uMode, unsigned uFrameBufferCount) |
Open a ray sequence. Depending on the mode a ray sequence can be opened for reading or writing. More... | |
static void | RxRaySeqRead () |
Read a frame from the currently bound ray sequence. More... | |
static void | RxRaySeqSetFrameIndex (unsigned uRaySeqID, unsigned uFrameIdx) |
Set the current frame index of ray sequence. More... | |
static void | RxRaySeqUnbind (unsigned uRaySeqID) |
Unbind a ray sequence. If a ray sequence in write mode is unbound, the currently bound ray image stays bound. No more images can be written to the ray sequence once it has been unbound, however, the ray sequence has not been closed. It can be bound again to write further ray images to it. More... | |
static void | RxRaySeqWrite () |
Write currently bound ray image to currently bound ray sequence. More... | |
static void | RxRaySetMetaData (unsigned uImgID, Rx::Net::MetaData^ xMetaData) |
Set meta data of a ray image. More... | |
static void | RxRayUnbind () |
Unbind the currently bound ray image. More... | |
static void | RxRefocusBasic () |
Focus image to a plane perpendicular to the optical axis, i.e. parallel to the image plane. More... | |
static void | RxRemoveComputationFilterMask () |
Removes the computation filter mask image set by Rx::LFR::Net::ApiLF::RxSetComputationFilterMask. More... | |
static void | RxResetParameters () |
Resets all parameters to their default value. More... | |
static void | RxResizeImage (Rx::Net::Image ^ % xDstImage, Rx::Net::Image^ % xSrcImage, int iDivider) |
Resize an image. More... | |
static void | RxSaveDepth3dMesh (System::String^ sFilename, bool bUseVD, double dMaxEdgeLength) |
Saves the 3D mesh provided by image 'Depth3D' to binary STL format. This requires a valid image computed by Rx::LFR::Net::ApiLF::RxDepth3D. Triangles with a depth-variation larger than 'dMaxEdgeLength' for at least one vertex pair are not added to the mesh. More... | |
static void | RxSaveDepth3dMesh (System::String^ sFilename, bool bUseVD, double dMaxEdgeLength, double dCropLeftPerc, double dCropRightPerc, double dCropTopPerc, double dCropBottomPerc) |
Saves the 3D mesh provided by image 'Depth3D' to binary STL format. This requires a valid image computed by Rx::LFR::Net::ApiLF::RxDepth3D. Triangles with a depth-variation larger than 'dMaxEdgeLength' for at least one vertex pair are not added to the mesh. More... | |
static void | RxSaveDepth3dPointList (System::String^ sFilename, bool bUseVD) |
Saves the depth values of the current Depth3D image to the given file as a point list. More... | |
static void | RxSaveDepth3dPointList (System::String^ sFilename, bool bUseVD, double dCropLeftPerc, double dCropRightPerc, double dCropTopPerc, double dCropBottomPerc) |
Saves the depth values of the current Depth3D image to the given file as a point list. More... | |
static void | RxSaveParameter (System::String^ sFilename) |
Saves all writable API parameter to file. Its mandatory to bind a light field image before. More... | |
static void | RxSetApplicationDetails (System::String^ sAppName, System::String^ sAppVersion) |
Sets details about the application that uses this runtime currently. Saving a ray file will write this details into the meta data of the file. More... | |
static void | RxSetComputationFilterMask (Rx::Net::Image^ xImage) |
Sets the computation filter mask image. More... | |
static void | RxSetComputationFilterMask (System::String^ sFilename) |
Sets the computation filter mask image. More... | |
static void | RxSetImage (Rx::LFR::Net::EImage eImgID, Rx::Net::Image^ xImage) |
Set an internal image. More... | |
static void | RxSetPar (Rx::LFR::Net::Params::EApiLF ePar, unsigned uValue) |
Sets the value of a parameter. More... | |
static void | RxSetPar (Rx::LFR::Net::Params::ECalib ePar, array< double >^ adValue) |
Sets the value of a parameter. More... | |
static void | RxSetPar (Rx::LFR::Net::Params::ECalib ePar, array< System::String^>^ asValue) |
Sets the value of a parameter. More... | |
static void | RxSetPar (Rx::LFR::Net::Params::ECalib ePar, array< unsigned >^ auValue) |
Sets the value of a parameter. More... | |
static void | RxSetPar (Rx::LFR::Net::Params::ECalib ePar, double dValue) |
Sets the value of a parameter. More... | |
static void | RxSetPar (Rx::LFR::Net::Params::ECalib ePar, System::String^ sValue) |
Sets the value of a parameter. More... | |
static void | RxSetPar (Rx::LFR::Net::Params::ECalib ePar, unsigned uValue) |
Sets the value of a parameter. More... | |
static void | RxSetPar (Rx::LFR::Net::Params::ECudaCompute ePar, array< double >^ adValue) |
Sets the value of a parameter. More... | |
static void | RxSetPar (Rx::LFR::Net::Params::ECudaCompute ePar, array< System::String^>^ asValue) |
Sets the value of a parameter. More... | |
static void | RxSetPar (Rx::LFR::Net::Params::ECudaCompute ePar, array< unsigned >^ auValue) |
Sets the value of a parameter. More... | |
static void | RxSetPar (Rx::LFR::Net::Params::ECudaCompute ePar, double dValue) |
Sets the value of a parameter. More... | |
static void | RxSetPar (Rx::LFR::Net::Params::ECudaCompute ePar, System::String^ sValue) |
Sets the value of a parameter. More... | |
static void | RxSetPar (Rx::LFR::Net::Params::ECudaCompute ePar, unsigned uValue) |
Sets the value of a parameter. More... | |
static void | RxTotalFocus (Rx::LFR::Net::ESpace eSpace) |
Focus on a depth surface. More... | |
static void | RxUnlockCudaMutex () |
Unlocks the CUDA Mutex. More... | |
Events | |
static CamImageAvailableHandler^ | CamImageAvailable [add, remove] |
Event queue for all listeners interested in CamImageAvailable events. More... | |
static Rx::LFR::Net::StatusMessageHandler^ | StatusMessage [add, remove] |
Event queue for all listeners interested in StatusMessage events. More... | |
|
inlinestatic |
Gets the interface defined by the given interface ID.
eInterface | [in] The interface ID. |
|
inlinestatic |
Gets the interface defined by the given interface ID.
eInterface | [in] The interface ID. |
|
static |
Assign the gray image of the calibration with the given GUID to the bound calibration. This copies the gray image.
sGUID | [in] The unique identifier of the calibration with the gray image to copy. |
bLoadGrayImg | [in] true to load gray image. |
|
static |
Applies the camera calibration defined by GUID sxGUID to the currently bound image in API. Also updates the computational class.
sGUID | [in] GUID of the calibration which should be applied to bound image. |
bApplyGrayImage | [in] If true, the current gray image is replaced by the one from the given calibration. |
|
static |
Bind gray image of calibration to API and use this image as gray image too. Now you can calibrate a calibration without using a camera.
This function returns the image ID of the bound gray image in uImgID.
uImgID | [out] Image ID of the bound gray image. |
sGUID | [in] The GUID of the calibration. |
|
static |
Creates a new calibration and returns the GUID of the newly created calibration.
|
static |
Creates a new calibration and returns the GUID of the newly created calibration.
uCamIdx | [in] id of a camera. |
|
static |
Creates a new calibration database for camera with name sxCamHardwareId.
sCamHardwareId | [in] Type of the camera. |
bForce | [in] Flags whether to overwrite an existing database or not. |
|
static |
Creates a new calibration database for bound camera.
If a calibration database for this camera already exists, a new one will only be created if bForce is true Otherwise a System::Exception is thrown.
bForce | [in] Flags whether to overwrite an existing database or not. |
|
static |
Creates a new calibration database for camera with ID uCamIdx
If a calibration database for this camera already exists, a new one will only be created if bForce is true. Otherwise a System::Exception is thrown.
uCamIdx | [in] Zero-based index of the camera. |
bForce | [in] Flags whether to overwrite an existing database or not. |
|
static |
Deletes a camera calibration using its GUID.
sGUID | [in] The GUID of the calibration to delete. |
|
static |
Gets an array<string> which contains unique IDs of all calibration for camera with given index uCamIdx.
asGUIDs | [out] Array of GUIDs. |
uCamIdx | [in] Zero-based index of the camera. |
|
static |
Gets a string which contains the GUID of the master calibration of this camera.
sGUID | [out] String of GUID. |
uCamIdx | [in] Zero-based index of the camera. |
|
static |
Gets an array<string> which contains GUIDs of all calibration on this computer.
asGUIDs | [out] array of GUIDS. |
|
static |
Gets a string array which contains GUIDs of all master calibration on this computer.
asGUIDs | [out] string array of GUIDS. |
|
static |
Gets the last applied calibration data.
xCalibData | [out] Information describing the calibration. |
|
static |
Gets Rx::Net::CalibMetaData for calibration with given GUID sGUID.
xCalibData | [out] The calibration data. |
sGUID | [in] The GUID of the calibration. |
|
static |
Creates a new calibration and returns the GUID of the newly created calibration.
sCamHardwareId | [in] Unique identifier for the new calibration. |
|
static |
Applies the currently bound camera calibration to the current bound image in API. Also updates to the computational class.
bApplyGrayImage | [in] If true, the current gray image is replaced by the one from the given calibration. |
|
static |
Sets calibration data to the last applied calibration.
xCalibData | [in] Information describing the calibration. |
|
static |
Sets Rx::Net::CalibMetaData for calibration with given GUID sGUID. Only certain parameters will be considered. The GUID, camera serial and camera type cannot be set.
xCalibData | [in] The calibration data. |
sGUID | [in] The GUID of the calibration. |
|
static |
Gets calibration (The camera calibration) from current bound image and saves it to current calibration. Also saves database to disk.
|
static |
Gets (The camera calibration) from current bound image and saves it to the calibration defined by GUID sxGUID Also saves database to disk.
sGUID | [in] GUID of the calibration which should be saved. |
|
static |
Binds the given camera to the returned API image ID. Call RxCamUnBind to unbind the bound camera. Only one camera can be bound. Calling Rx::LFR::Net::ApiLF::RxCamBind with another camera index results in an System::Exception.
uCamIdx | [in] Zero-based index of the camera. |
|
static |
Closes the given camera. If the given camera is currently bound, the camera is unbound before closing. Also, if the camera is in capture mode, the capturing is stopped before unbinding.
uCamIdx | [in] The zero-based index of the camera to close. |
|
static |
Get camera parameter of type Rx::CRxArrayString.
ePar | [in] The camera parameter. |
aValue | [out] The returned string array value. |
|
static |
Get camera parameter of type double from the currently bound camera.
ePar | [in] The camera parameter ID. Allowed parameters from Rx::InteropNet::Runtime30::Camera::EProperty are:
|
Rx::InteropNet::Runtime30::Camera::EProperty::StrobeLength2
dValue | [out] The returned double value. |
|
static |
Get a camera parameter of type Rx::CRxString from the currently bound camera.
ePar | [in] The camera parameter. Allowed parameters from Rx::InteropNet::Runtime30::Camera::EProperty are:
|
sValue | [out] The returned string value. |
|
static |
Get a camera parameter of type unsigned integer from the currently bound camera.
ePar | [in] The camera parameter. Allowed parameters from Rx::InteropNet::Runtime30::Camera::EProperty are:
|
Rx::InteropNet::Runtime30::Camera::EProperty::GlobalStart
uValue | [out] The returned unsigned integer value. |
|
static |
Get camera parameter of type Rx::CRxArrayString.
uCamIdx | [in] The zero-based camera index. |
ePar | [in] The camera parameter. |
aValue | [out] The returned double value. |
|
static |
Get camera parameter of type double
uCamIdx | [in] The zero-based camera index. |
ePar | [in] The camera parameter. Allowed parameters from Rx::InteropNet::Runtime30::Camera::EProperty are:
|
dValue | [out] The returned double value. |
|
static |
Get a camera parameter of type Rx::CRxString.
uCamIdx | [in] The zero-based camera index. |
ePar | [in] The camera parameter. Allowed parameters from Rx::InteropNet::Runtime30::Camera::EProperty are:
|
sValue | [out] The returned string value. |
|
static |
Get a camera parameter of type unsigned integer.
uCamIdx | [in] The zero-based camera index. |
ePar | [in] The camera parameter ID. Allowed parameters from Rx::InteropNet::Runtime30::Camera::EProperty are:
|
uValue | [out] The returned unsigned integer value. |
|
static |
Get set of available values for parameter of type unsigned.
ePar | [in] The camera parameter. |
auValues | [out] The list of available values. |
|
static |
Get the parameter range of a camera parameter of type double
from the currently bound camera.
ePar | [in] The camera parameter. Allowed parameters from Rx::InteropNet::Runtime30::Camera::EProperty are:
|
dMin | [out] On return the minimal parameter value. |
dMax | [out] On return the maximal parameter value. |
|
static |
Get the parameter range of a camera parameter of type unsigned
integer
from the currently bound camera.
ePar | [in] The camera parameter. Allowed parameters from Rx::InteropNet::Runtime30::Camera::EProperty are:
|
uMin | [out] On return the minimal parameter value. |
uMax | [out] On return the maximal parameter value. |
|
static |
Get a set of available values for a parameter of type unsigned integer.
uCamIdx | [in] The zero-based camera index. |
ePar | [in] The camera parameter. |
auValues | [out] The list of available values. |
|
static |
Get the parameter range of a camera parameter of type double.
uCamIdx | [in] The zero-based camera index. |
ePar | [in] The camera parameter. Allowed parameters from Rx::InteropNet::Runtime30::Camera::EProperty are:
|
dMin | [out] On return the minimal parameter value. |
dMax | [out] On return the maximal parameter value. |
|
static |
Get the parameter range of a camera parameter of type unsigned integer.
uCamIdx | [in] The zero-based camera index. |
ePar | [in] The camera parameter. Allowed parameters from Rx::InteropNet::Runtime30::Camera::EProperty are:
|
uMin | [out] On return the minimal parameter value. |
uMax | [out] On return the maximal parameter value. |
|
static |
Test whether a camera parameter is supported by the currently bound camera.
ePar | [in] The camera parameter. |
|
static |
Test whether a camera parameter is supported by the given camera.
ePar | [in] The camera parameter ID. |
uCamIdx | [in] The zero-based camera index. |
|
static |
Opens the given camera. Camera settings can only be accessed after a camera has been opened. The first call to open initializes the camera too.
uCamIdx | [in] The zero-based index of the camera to open. |
|
static |
Register available cameras.
This functions registers all cameras that are currently available. Only registered cameras can be used by the Raytrix API. This function can be called repeatedly to update the list of available cameras. This function has to be called before any other API camera function.
|
static |
Retrieve a single image from the currently bound camera.
|
static |
Set a camera property of type double.
ePar | [in] The camera parameter. Allowed parameters from Rx::InteropNet::Runtime30::Camera::EProperty are:
|
dValue | [in] The double value. |
|
static |
Set a camera property of type Rx::CRxString from the currently bound camera.
ePar | [in] The camera parameter. Allowed parameters from Rx::InteropNet::Runtime30::Camera::EProperty are:
|
sValue | [in] The string value. |
|
static |
Set a camera property of type unsigned integer from the currently bound camera.
ePar | [in] The camera parameter. Allowed parameters from Rx::InteropNet::Runtime30::Camera::EProperty are:
|
uValue | [in] The unsigned integer value. |
|
static |
Set a camera property of type double.
uCamIdx | [in] The zero-based camera index. |
ePar | [in] The camera parameter. Allowed parameters from Rx::InteropNet::Runtime30::Camera::EProperty are:
|
dValue | [in] The double value. |
|
static |
Set a camera property of type Rx::CRxString.
uCamIdx | [in] The zero-based camera index. |
ePar | [in] The camera parameter. Allowed parameters from Rx::InteropNet::Runtime30::Camera::EProperty are:
|
sValue | [in] The returned String value. |
|
static |
Set a camera property of type unsigned integer.
uCamIdx | [in] The zero-based camera index. |
ePar | [in] The camera parameter. Allowed parameters from Rx::InteropNet::Runtime30::Camera::EProperty are:
|
Rx::InteropNet::Runtime30::Camera::EProperty::GlobalStart
uValue | [in] The unsigned integer value. |
|
static |
Prepares the currently bound camera for capturing images. If the currently bound camera is already in capture mode, then the function throws an exception.
|
static |
Stops capturing of the currently bound camera. If the camera is not in capture mode, the function simply returns without error.
|
static |
Suspend capturing images.
This function stops the data transfer between camera and computer but keeps all other capture settings.
bSuspend | [in] True to suspend camera capture and false to restart camera capture. |
|
static |
Triggers capturing of a single image of the currently bound camera. The image can be retrieved by calling Rx::LFR::Net::ApiLF::RxCamRetrieveImage.
|
static |
Unbinds a currently bound camera. If the bound camera is still capturing images, the capturing is stopped and then the camera is unbound.
|
static |
Convert a Rx::CRxImage to a new pixel and data type.
xDstImage | [out] Destination image. |
xSrcImage | [in] Reference to the image. |
eDstImageType | [in] Pixel type of the converted image. |
eDstDataType | [in] Data type of the converted image. |
|
static |
Returns the number of CUDA devices installed.
|
static |
Return free and total amount of memory on the selected CUDA device.
uFreeMem | [out] On return contains the amount of free memory in bytes. |
uTotalMem | [out] On return contains the amount of total memory in bytes. |
|
static |
Get the name and the compute capability major and minor version for a CUDA device.
iDevice | [in] Zero-based ID of the CUDA device. |
sName | [out] On return contains the name of the CUDA device. |
uCCMajor | [out] On return contains the major version of the CUDA device compute capability. |
uCCMinor | [out] On return contains the minor version of the CUDA device compute capability. |
|
static |
Select a CUDA device.
Use the functions Rx::LFR::Net::ApiLF::RxCudaDeviceCount and Rx::LFR::Net::ApiLF::RxCudaDeviceProp to obtain information about the installed CUDA devices and then select the most appropriate CUDA device with this function. If iDevice is set to -1, the first appropriate CUDA device is selected.
To exchange image data generated by CUDA directly with an OpenGL rendering context on the same device, bUseGL has to be set to true and the CUDA device has to support OpenGL 3.0 or higher. Note that CUDA/DirectX interop. is currently not supported.
For further details on CUDA/OpenGL interop.
iDevice | [in] The zero-based CUDA device ID or -1 for automatic selection. |
bUseGL | [in] Flag indicating whether to initialize CUDA for OpenGL interop. or not. |
|
static |
Object space depth 3D.
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 image is stored in the image with the ID Rx::LFR::Net::EImage::Depth3D.
|
static |
Colorizes the depth map created by Rx::LFR::Net::ApiLF::RxDepthMap.The result is stored in the image with the ID Rx::LFR::Net::EImage::Depth3D.
eSpace | [in] The space. |
|
static |
Creates a depth map from the ray depth image created by Rx::LFR::Net::ApiLF::RxDepthRay.
eSpace | [in] The space. |
|
static |
Estimates the depth of the bound ray image and stores the result in the image with the ID Rx::LFR::Net::EImage::DepthRay.
|
static |
Get the IDs of an attached dongle.
iDngID | [in] On return contains the hardware dongle ID. |
iRxID | [in] On return contains the Raytrix dongle ID. |
|
static |
Close any open cameras and free all memory allocated on CUDA device and in host memory.
|
static |
Frees memory used by image defined by eImgID
This invalidates the image.
eImgID | [in] Identifier for the image. |
|
static |
Get an internal image.
The available internal image IDs are listed in Rx::LFR::Net::EImage.
eImgID | [in] Internal image ID. This is not a ray image handle. |
xImageIfc | [out] On return contains a copy of the specified internal image. |
bCreate | [in] If true, a new image is created in pImage. Otherwise, it is ensured that pImage refers to an image the same size and type as the respective internal image, and then the internal image is copied. |
|
static |
Get an internal image.
The available internal image IDs are listed in Rx::LFR::Net::EImage.
eImgID | [in] Internal image ID. This is not a ray image handle. |
xImage | [out] On return contains a copy of the specified internal image. |
|
static |
Get the device pointer of an internal image.
eImgID | [in] Internal image ID. This is not a ray image handle. |
pDevicePtr | [out] On return contains the internal image's device pointer. |
|
static |
Gets device pointer pitch, which is the width in bytes of the allocation. Given a row and column of an array element of type T, the address is computed as:
T* pElement = (T*)((char*)BaseAddress + Row * pitch) + Column;
eImgID | [in] Internal image ID. This is not a ray image handle. |
|
static |
Get the image format of an internal image.
eImgID | [in] Internal image ID. This is not a ray image handle. |
xF | [out] On return contains the internal image's format. |
|
static |
Calculates the histogram of the image with the given eImgID 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.
eImgID | [in] The image ID. |
xHistogram | [out] A reference of Rx::CRxArrayUInt where the histogram will be stored. |
uChannels | [out] The number of channels. |
|
static |
Finds the minimum and maximum value of the given eImgID
eImgID | [in] The image ID. |
uChannel | [in] The channel. |
fMin | [out] The minimum value. |
fMax | [out] The maximum value. |
|
static |
Gets the value of a parameter.
ePar | [in] The ID of the parameter. |
uValue | [out] The value of the parameter. |
|
static |
Gets the value of a parameter.
ePar | [in] The ID of the parameter. |
adValue | [out] The value of the parameter. |
|
static |
Gets the value of a parameter.
ePar | [in] The ID of the parameter. |
asValue | [out] The value of the parameter. |
|
static |
Gets the value of a parameter.
ePar | [in] The ID of the parameter. |
auValue | [out] The value of the parameter. |
|
static |
Gets the value of a parameter.
ePar | [in] The ID of the parameter. |
dValue | [out] The value of the parameter. |
|
static |
Gets the value of a parameter.
ePar | [in] The ID of the parameter. |
sValue | [out] The value of the parameter. |
|
static |
Gets the value of a parameter.
ePar | [in] The ID of the parameter. |
uValue | [out] The value of the parameter. |
|
static |
Gets the value of a parameter.
ePar | [in] The ID of the parameter. |
adValue | [out] The value of the parameter. |
|
static |
Gets the value of a parameter.
ePar | [in] The ID of the parameter. |
asValue | [out] The value of the parameter. |
|
static |
Gets the value of a parameter.
ePar | [in] The ID of the parameter. |
auValue | [out] The value of the parameter. |
|
static |
Gets the value of a parameter.
ePar | [in] The ID of the parameter. |
dValue | [out] The value of the parameter. |
|
static |
Gets the value of a parameter.
ePar | [in] The ID of the parameter. |
sValue | [out] The value of the parameter. |
|
static |
Gets the value of a parameter.
ePar | [in] The ID of the parameter. |
uValue | [out] The value of the parameter. |
|
static |
Get the string representation of a parameter.
ePar | [in] The parameter ID. |
aValue | [out] On return contains the parameter string representation. |
|
static |
Get the string representation of a parameter.
ePar | [in] The parameter ID. |
aValue | [out] On return contains the parameter string representation. |
|
static |
Get the string representation of a parameter.
ePar | [in] The parameter ID. |
aValue | [out] On return contains the parameter string representation. |
|
static |
Get the Properties of a parameter.
ePar | [in] The parameter ID. |
sName | [out] On return contains the parameter string representation. |
bReadAccess | [out] On return contains the parameter ReadAccess flag. |
bWriteAccess | [out] On return contains the parameter WriteAccess flag. |
eType | [out] On return contains the parameter DataType. |
|
static |
Get the Properties of a parameter.
ePar | [in] The parameter ID. |
sName | [out] On return contains the parameter string representation. |
bReadAccess | [out] On return contains the parameter ReadAccess flag. |
bWriteAccess | [out] On return contains the parameter WriteAccess flag. |
eType | [out] On return contains the parameter DataType. |
|
static |
Get the Properties of a parameter.
ePar | [in] The parameter ID. |
sName | [out] On return contains the parameter string representation. |
bReadAccess | [out] On return contains the parameter ReadAccess flag. |
bWriteAccess | [out] On return contains the parameter WriteAccess flag. |
eType | [out] On return contains the parameter DataType. |
|
static |
Get the value range of a parameter.
ePar | [in] The ID of the parameter. |
uMin | [out] The min allowed value of the parameter. |
uMax | [out] The max allowed value of the parameter. |
|
static |
Get the value range of a parameter.
ePar | [in] The ID of the parameter. |
dMin | [out] The min allowed value of the parameter. |
dMax | [out] The max allowed value of the parameter. |
|
static |
Get the value range of an array parameter and the min and max allowed number of elements in the array.
ePar | [in] The ID of the parameter. |
iMinCount | [out] The min number of values allowed in the array. |
iMaxCount | [out] The max number of values allowed in the array. |
dMin | [out] The min allowed value of the parameter. |
dMax | [out] The max allowed value of the parameter. |
|
static |
Get the value range of an array parameter and the min and max allowed number of elements in the array.
ePar | [in] The ID of the parameter. |
iMinCount | [out] The min number of values allowed in the array. |
iMaxCount | [out] The max number of values allowed in the array. |
uMin | [out] The min allowed value of the parameter. |
uMax | [out] The max allowed value of the parameter. |
|
static |
Get the value range of a parameter.
ePar | [in] The ID of the parameter. |
uMin | [out] The min allowed value of the parameter. |
uMax | [out] The max allowed value of the parameter. |
|
static |
Get the value range of a parameter.
ePar | [in] The ID of the parameter. |
dMin | [out] The min allowed value of the parameter. |
dMax | [out] The max allowed value of the parameter. |
|
static |
Get the value range of an array parameter and the min and max allowed number of elements in the array.
ePar | [in] The ID of the parameter. |
iMinCount | [out] The min number of values allowed in the array. |
iMaxCount | [out] The max number of values allowed in the array. |
dMin | [out] The min allowed value of the parameter. |
dMax | [out] The max allowed value of the parameter. |
|
static |
Get the value range of an array parameter and the min and max allowed number of elements in the array.
ePar | [in] The ID of the parameter. |
iMinCount | [out] The min number of values allowed in the array. |
iMaxCount | [out] The max number of values allowed in the array. |
uMin | [out] The min allowed value of the parameter. |
uMax | [out] The max allowed value of the parameter. |
|
static |
Get the value range of a parameter.
ePar | [in] The ID of the parameter. |
uMin | [out] The min allowed value of the parameter. |
uMax | [out] The max allowed value of the parameter. |
|
static |
Gets the release date of this version of the Raytrix Light Field Runtime. Can be called without initializing the API.
|
static |
Assigns the OpenGL context created by Rx::LFR::Net::ApiLF::RxCudaSelectDevice to the calling thread.
|
static |
Get the OpenGl texture ID corresponding to given parameter eImgID. The content of this texture can be updated with the Rx::LFR::Net::ApiLF::RxGlUpdateTex function.
eImgID | [in] The image ID. |
|
static |
Get the OpenGl texture ID corresponding to given parameter eImgID. The content of this texture can be updated with the Rx::LFR::Net::ApiLF::RxGlUpdateTex function.
eImgID | [in] The image ID. |
uGlTextureID | [out] Identifier for the OpenGL texture. |
|
static |
Get OpenGL version of current OpenGL rendering context.
iMajor | [out] On return contains the OpenGL major version. |
iMinor | [out] On return contains the OpenGL minor version. |
|
static |
Releases the OpenGL context owned by the calling thread.
|
static |
Store the threads current OpenGL context. The context can be retrieved with RxGlGetContext() and released with RxGlReleaseContext.
|
static |
Copy CUDA result images to OpenGL textures.
The internal image IDs that can be used with this function are those declared in Rx::LFR::Net::EImage.
eImgID | [in] Internal image ID. |
|
static |
Copy CUDA result images to OpenGL textures.
The internal image IDs that can be used with this function are those declared in Rx::LFR::Net::EImage.
eImgID | [in] Internal image ID. |
bCreateMipmaps | [in] Flag, whether to create mipmaps or not. |
|
static |
Show a lens grid overlay on the raw ray image.
The result is written to the internal image with ID Rx::LFR::Net::EImage::Grid.
|
static |
Automatically calibrates the MLA rotation steps and the MLA reflection. Requires master dongle feature.
|
static |
Automatically calibrates MLA grid. Requires master dongle feature.
|
static |
Automatically calibrates MLI grid.
|
static |
Pre Process a ray image with a minimal Set of preprocessing parameter.
This function does the same preprocessing as Rx::LFR::Net::ApiLF::RxPreProcess but all preprocessing flags with exception of debayering are deactivated.
|
static |
Enables or disables a callback during automatic grid calibration via RxGridCalibrateMli, RxGridCalibrateMla and RxGridCalibrateMaster.
bEnable | True to enable, false to disable. |
|
static |
Test whether the Dongle offers a given feature.
eFeatureID | [in] The feature to check for availability. |
|
static |
Test whether the Dongle offers the given features.
uFeatureIDs | [in] A OR-ed list of Rx::Dongle::ERuntimeFeature::ID to check for availability. |
|
static |
Initialize the Raytrix API.
|
static |
Initialize the Raytrix API.
bInitCuda | [in] If set to false only functionality that does not rely on CUDA can be used. |
sLibPath | [in] The absolute path to the camera driver DLLs (RaytrixCamera_*.dll). |
sCalibPath | [in] The absolute path to the camera calibration directories. |
|
static |
Initialize the Raytrix API.
sLibPath | [in] If set to false only functionality that does not rely on CUDA can be used. |
sCalibPath | [in] The absolute path to the camera driver DLLs (RaytrixCamera_*.dll). |
|
static |
Test whether an internal image is valid.
eImgID | [in] Internal image ID. This is not a ray image handle. |
true
if the image is valid, false
otherwise.
|
static |
Loads all writable API parameter from file. Its mandatory to bind a light field image before.
sFilename | [in] The complete file path. |
|
static |
Locks the CUDA Mutex.
iTimeout | [in] If the mutex is locked, the timeout defines the time in ms until a Rx::Net::RxException is thrown. |
|
static |
Creates a multi view image and stores the result in the image with the ID Rx::LFR::Net::EImage::Multiview_ViewCamera.
|
static |
Pre-Process a ray image.
The ray image that is bound with RxRayBind() is a raw lightfield image. Before this ray image can be used by the actual processing algorithms, it has to be adjusted by applying a rectification of a possible radial distortion and by adjusting its brightness and color with respect to a gray image.
|
static |
Projects an array of points from the given source space into the given target space.
adTargetPoint | [out] The array of projected points. |
adSourcePoint | [in] The array of points to project. |
eTarget | [in] The target space. |
eSource | [in] The source space. |
|
static |
Bind a ray image to perform computations on.
uRayHandle | [in] The ID of the light field image that is to be used for calculations. |
|
static |
Save calibration data of ray image in XML format.
uRayHandle | [in] The ID of the ray image whose calibration data is to be saved. |
sFilename | [in] The the complete file path under which to save the data. |
|
static |
Get the calibration data of the given ray image as XML string.
uRayHandle | [in] The ID of the ray image whose calibration data is to be saved. |
sXml | [out] On successful return contains the XML string. |
|
static |
Delete the image with the given ID.
uRayHandle
is currently bound by a previous call to Rx::LFR::Net::ApiLF::RxRayBind or Rx::LFR::Net::ApiLF::RxCamStartCapture, the image is not deleted and an exception is thrown.uRayHandle | [in] The handle of the ray image to delete. |
|
static |
Gets the pointer to the internal camera format.
|
static |
Get the image format of a ray image.
uRayHandle | [in] The ray image handle. |
|
static |
Gets the frame ID of the bound light field image. Used when working with sequences or cameras.
|
static |
Gets the frame ID of the given light field image. Used when working with sequences or cameras.
uRayHandle | [in] The ID of the light field image created by calling RxRayLoad, RxRaySeqBind or RxCamBind. |
|
static |
Get the meta data of the bound ray image.
The meta data class Rx::Net::MetaData can contain any number of meta data elements of types unsigned, double and string You can get, set and add elements to the meta data instance and store this together with the ray image.
|
static |
Get meta data of a ray image.
The meta data class Rx::Net::MetaData can contain any number of meta data elements of types unsigned, double and string You can get, set and add elements to the meta data instance and store this together with the ray image.
uImgID | [in] The ray image handle. |
|
static |
Get the ray image as Rx::CRxImage instance.
uRayHandle | [in] The ray image handle. |
|
static |
Get the ray image.
uRayHandle | [in] The ray image handle. |
IRawImage | [out] Pointer to an IImage interface. |
bCreate | [in] Flag whether to create image. |
|
static |
Gets the image timestamp of the bound light field image. Is 0 if the image hasn't a valid timestamp. You can use this timestamp and the timestamp of another camera or sequence frame to determine the time between them.
|
static |
Gets the image timestamp of the given light field image. Is 0 if the image hasn't a valid timestamp. You can use this timestamp and the timestamp of another camera or sequence frame to determine the time between them.
uRayHandle | [in] The ID of the light field image created by calling RxRayLoad, RxRaySeqBind or RxCamBind. |
|
static |
Load a ray image.
sFilename | [in] The complete file path of the ray image. |
|
static |
Create a new ray image.
The allowed pixel types of ray images are
Returns the ray handle, which you can use in:
xF | [in] The ray image format. |
|
static |
Saves the bound light field image to the given file.
This augments the meta data with information from the current light field environment and saves them along the image data. These information contain the current algorithm parameter.
sFilename | [in] The complete file path. |
bUpdateMetaData | [in] True to update the current meta data so that they are available in the next call to RxRayGetMetaData; false to update a COPY of the current meta data so that they are NOT available in the next call to RxRayGetMetaData. |
|
static |
Saves the given light field image to the given file.
This augments the meta data with information from the current light field environment and saves them along the image data. These information contain the current algorithm parameter.
uRayHandle | The ID of the light field image created by calling RxRayLoad, RxRaySeqBind or RxCamBind. |
sFilename | [in,out] The complete file path. |
bUpdateMetaData | True to update the current meta data so that they are available in the next call to RxRayGetMetaData; false to update a COPY of the current meta data so that they are NOT available in the next call to RxRayGetMetaData. |
|
static |
Bind a ray sequence for use by other API functions.
Only one ray sequence for reading and one ray sequence for writing can be bound at a time. When a ray sequence is bound for reading, then any currently bound ray image is unbound, a new prototype ray image of the format of the ray sequence is created and bound and the first image of the ray sequence is loaded into the bound ray image.The ID of the newly created ray image is returned. No new ray image can be bound until the ray sequence is unbound using Rx::LFR::Net::ApiLF::RxRaySeqUnbind .If a camera capture is started while a ray sequence is bound for reading, the ray sequence is automatically unbound. While a camera is in capture mode, no ray sequence can be bound for reading.
When a ray sequence is bound for writing a ray image must already be bound. If the ray sequence is empty up to now, the ray sequence is created for the currently bound image type and only ray images of the same format can be written to the ray sequence.Also only ray images of the same format can be bound while the ray sequence is bound. If the ray sequence already contains images, it can only be bound if the currently bound ray image format is of the same format as the ray sequence. If a ray sequence in write mode is bound and camera capture is started the ray sequence is also unbound if the image formats do not agree.To capture frames from a camera, first start the camera capture, then bind the ray sequence in write mode and set the parameter Rx::LFR::Net::Params::EApiLF::RaySeq_AutoStoreCamFrames to 1. The value returned is the ray image ID of the currently bound ray image.
uRaySeqID | [in] The id of the ray sequence. |
|
static |
Close a ray sequence.
uRaySeqID | [in] The id of the ray sequence. |
|
static |
Get the doubleshot mode used when recording the given sequence.
uRaySeqHandle | [in] The ray sequence id. |
|
static |
Get the total file size of the ray sequence in bytes.
uRaySeqID | [in] The ray sequence id. |
uFileSize | [out] Contains the total size of the ray sequence in bytes. |
|
static |
Get number of frame buffers in use.
uRaySeqID | [in] The ray sequence id. |
|
static |
Get number of frames in ray sequence.
|
static |
Get number of frames in ray sequence.
uRaySeqID | The ray sequence id. |
|
static |
Get current frame index of ray sequence.
uRaySeqID | [in] The ray sequence id. |
|
static |
Determines if a sequence is bound for reading to the API.
|
static |
Move the frame index relative to the current position in the ray sequence.
uRaySeqID | [in] The ray sequence id. |
iStep | [in] The number of frames to move. Negative values move frame index backward. |
|
static |
Open a ray sequence. Depending on the mode a ray sequence can be opened for reading or writing.
sFilename | [in] The complete file path of the ray sequence. |
uMode | [in] The ray sequence mode. This is a combination of elements of ERaySeqMode . |
uFrameBufferCount | [in] The number of frame buffers used for buffered writing/reading. |
|
static |
Read a frame from the currently bound ray sequence.
|
static |
Set the current frame index of ray sequence.
uRaySeqID | [in] The ray sequence id. |
uFrameIdx | [in] The frame index. |
|
static |
Unbind a ray sequence. If a ray sequence in write mode is unbound, the currently bound ray image stays bound. No more images can be written to the ray sequence once it has been unbound, however, the ray sequence has not been closed. It can be bound again to write further ray images to it.
If a ray sequence in read mode is unbound, the currently bound ray image stays bound. The ray image is therefore also not removed from memory.
uRaySeqID | [in] The ray sequence ID of the ray sequence to unbind. |
|
static |
Write currently bound ray image to currently bound ray sequence.
This function appends the currently bound ray image to the bound ray sequence.
|
static |
Set meta data of a ray image.
uImgID | The ray image handle. |
xMetaData | [in] The ray image meta data to set. |
|
static |
Unbind the currently bound ray image.
|
static |
Focus image to a plane perpendicular to the optical axis, i.e. parallel to the image plane.
This focuses to a plane perpendicular to the optical axis. To change the focal plane, use parameter Rx::LFR::Net::Params::EApiLF::Focus_RelativeFocusPlane. A relative focus value of zero refocuses to the plane furthest away from the viewer and a value of 1 would focus to a plane that passes through the object side focal point of the recording lens.
The result is written to the internal image with ID Rx::LFR::Net::EImage::RefocusBasic. The size of this resultant image is set in relation to the ray image size via the parameter Rx::LFR::Net::Params::EApiLF::Focus_ImageDivisor.
|
static |
Removes the computation filter mask image set by Rx::LFR::Net::ApiLF::RxSetComputationFilterMask.
|
static |
Resets all parameters to their default value.
|
static |
Resize an image.
xDstImage | [out] The target image to store the result. |
xSrcImage | [in] The image that is to be resized. |
iDivider | [in] The image size divider. For example, if iDivder = 2, then the resultant image size is half the original size. |
|
static |
Saves the 3D mesh provided by image 'Depth3D' to binary STL format. This requires a valid image computed by Rx::LFR::Net::ApiLF::RxDepth3D. Triangles with a depth-variation larger than 'dMaxEdgeLength' for at least one vertex pair are not added to the mesh.
sFilename | [in] The complete file path. |
bUseVD | [in] True to save the mesh in virtual depth units instead of metric units. |
dMaxEdgeLength | [in] Limit for depth-variation in vertices. -1 = infinity. |
|
static |
Saves the 3D mesh provided by image 'Depth3D' to binary STL format. This requires a valid image computed by Rx::LFR::Net::ApiLF::RxDepth3D. Triangles with a depth-variation larger than 'dMaxEdgeLength' for at least one vertex pair are not added to the mesh.
sFilename | [in] The complete file path. |
bUseVD | [in] True to save the mesh in virtual depth units instead of metric units. |
dMaxEdgeLength | [in] Limit for depth-variation in vertices. -1 = infinity. |
dCropLeftPerc | [in] the percentage of the cropping on the left side. |
dCropRightPerc | [in] the percentage of the cropping on the right side. |
dCropTopPerc | [in] the percentage of the cropping on the top side. |
dCropBottomPerc | [in] the percentage of the cropping on the bottom side. |
|
static |
Saves the depth values of the current Depth3D image to the given file as a point list.
The formats available are:
ASCII:
Binary:
sFilename | [in] The complete file path. |
bUseVD | [in] True to save the point list in virtual depth units instead of metric units. |
|
static |
Saves the depth values of the current Depth3D image to the given file as a point list.
The formats available are:
ASCII:
Binary:
sFilename | [in] If non-null, complete file path. |
bUseVD | [in] True to save the point list in virtual depth units instead of metric units. |
dCropLeftPerc | [in] The crop left perc. |
dCropRightPerc | [in] The crop right perc. |
dCropTopPerc | [in] The crop top perc. |
dCropBottomPerc | [in] The crop bottom perc. |
|
static |
Saves all writable API parameter to file. Its mandatory to bind a light field image before.
sFilename | [in] The complete file path. |
|
static |
Sets details about the application that uses this runtime currently. Saving a ray file will write this details into the meta data of the file.
sAppName | [in] The application name. |
sAppVersion | [in] The application version. |
|
static |
Sets the computation filter mask image.
This image is used to reduce the number of lenses used for depth estimation (Rx::LFR::Net::ApiLF::RxDepthRay).
It must have the same dimension as the raw image and a pixel type of Rx::Interop::Runtime28::EPixelType::Lum and a data type of Rx::Interop::Runtime28::EDataType::UByte.
Each lens of the raw image has a lens center that can be rounded to a pixel. If this pixel has the value 255 in the filter mask image, the corresponding lens is used. If this pixel has another value, the lens is not used.
xImage | [in] The computation filter mask image. |
|
static |
Sets the computation filter mask image.
This image is used to reduce the number of lenses used for depth estimation (Rx::LFR::Net::ApiLF::RxDepthRay).
It must have the same dimension as the raw image and a pixel type of Rx::Interop::Runtime28::EPixelType::Lum and a data type of Rx::Interop::Runtime28::EDataType::UByte.
Each lens of the raw image has a lens center that can be rounded to a pixel. If this pixel has the value 255 in the filter mask image, the corresponding lens is used. If this pixel has another value, the lens is not used.
sFilename | [in] The complete file path of the computation filter mask image to load. |
|
static |
Set an internal image.
The available internal image IDs are listed in Rx::LFR::Net::EImage.
A new ray image can be set with eImgID set to Rx::LFR::Net::EImage::Raw and a new gray image with Rx::LFR::Net::EImage::Gray. RxSetImage copies the image data into the currently bound ray image and to the CUDA device. For the new ray image to be used in calculations you must call Rx::LFR::Net::ApiLF::RxPreProcess after setting the ray and the gray image.
You can also circumvent the internal preprocessing of the ray image by writing directly the processed ray image to the CUDA device with Rx::LFR::Net::EImage::Processed_Normalized. However, this will not change the Rx::LFR::Net::EImage::Raw or Rx::LFR::Net::EImage::Gray images currently bound.
eImgID | [in] Internal image ID. This is not a ray image handle. |
xImage | [in] The image to copy into the specified internal image. |
|
static |
Sets the value of a parameter.
ePar | [in] The ID of the parameter. |
uValue | [in] The value of the parameter. |
|
static |
Sets the value of a parameter.
ePar | [in] The ID of the parameter. |
adValue | [in] The value of the parameter. |
|
static |
Sets the value of a parameter.
ePar | [in] The ID of the parameter. |
asValue | [in] The value of the parameter. |
|
static |
Sets the value of a parameter.
ePar | The ID of the parameter. |
auValue | [in] The value of the parameter. |
|
static |
Sets the value of a parameter.
ePar | [in] The ID of the parameter. |
dValue | [in] The value of the parameter. |
|
static |
Sets the value of a parameter.
ePar | [in] The ID of the parameter. |
sValue | [in] The value of the parameter. |
|
static |
Sets the value of a parameter.
ePar | [in] The ID of the parameter. |
uValue | [in] The value of the parameter. |
|
static |
Sets the value of a parameter.
ePar | [in] The ID of the parameter. |
adValue | [in] The value of the parameter. |
|
static |
Sets the value of a parameter.
ePar | [in] The ID of the parameter. |
asValue | [in] The value of the parameter. |
|
static |
Sets the value of a parameter.
ePar | [in] The ID of the parameter. |
auValue | [in] The value of the parameter. |
|
static |
Sets the value of a parameter.
ePar | [in] The ID of the parameter. |
dValue | [in] The value of the parameter. |
|
static |
Sets the value of a parameter.
ePar | [in] The ID of the parameter. |
sValue | [in] The value of the parameter. |
|
static |
Sets the value of a parameter.
ePar | [in] The ID of the parameter. |
uValue | [in] The value of the parameter. |
|
static |
Focus on a depth surface.
In principle, each pixel of the result image can be focused individually. The function Rx::LFR::Net::ApiLF::RxTotalFocus makes this property available by focusing the ray image to the depth surface given in the internal depth image related to the target space that is selected. To calculate the depth image you have to call Rx::LFR::Net::ApiLF::RxDepthRay first and next Rx::LFR::Net::ApiLF::RxDepthMap, or by a user defined image set with Rx::LFR::Net::ApiLF::RxSetImage.
When setting a depth image with Rx::LFR::Net::ApiLF::RxSetImage it need not have the same dimensions as the resultant image. The given depth map is implicitly scaled to the size of the resultant refocused image.
If the size of the given depth map image is 1x1 pixel, the depth encoded for that pixel is applied to all focused pixel. The depth image has to be of pixel type Rx::Interop::Runtime28::EPixelType::Lum and data type Rx::Interop::Runtime28::EDataType::UByte. The pixel value range of [0,255] is mapped to [0,1] for the interpretation as depth.
eSpace | [in] The space. |
|
static |
Unlocks the CUDA Mutex.
|
staticaddremove |
Event queue for all listeners interested in CamImageAvailable events.
|
staticaddremove |
Event queue for all listeners interested in StatusMessage events.