|
RVC
1.15.0
a product by
RVBUST.
|
#include <RVC.h>
Classes | |
| struct | CalculationCallBackInfo |
| X1 CalculationCallBackInfo. More... | |
| struct | CaptureOptions |
| Capture options. More... | |
| struct | CollectionCallBackInfo |
| X1 CollectionCallBackInfo. More... | |
| struct | CustomTransformOptions |
| Options when setting custom transformation. More... | |
Public Types | |
| typedef void(* | CollectionCallBackPtr) (X1::CollectionCallBackInfo, X1::CaptureOptions, UserPtr) |
| X1 CallBackPtr. | |
| typedef void(* | CalculationCallBackPtr) (X1::CalculationCallBackInfo, X1::CaptureOptions, UserPtr) |
Public Member Functions | |
| bool | IsValid () |
| Check X1 is valid or not before use X1. More... | |
| bool | Open () |
| Open X1 before you use it. More... | |
| void | Close () |
| Close X1 after you Open it. More... | |
| bool | IsOpen () |
| Check X1 is open or not. More... | |
| bool | IsPhysicallyConnected () |
| Check X1 is physically connected or not. More... | |
| bool | OpenProtectiveCover () |
| Open ProtectiveCover. More... | |
| bool | OpenProtectiveCoverAsync () |
| Open ProtectiveCover Async. More... | |
| bool | CloseProtectiveCover () |
| Close ProtectiveCover. More... | |
| bool | CloseProtectiveCoverAsync () |
| Close ProtectiveCover Async. More... | |
| bool | ResetProtectiveCover () |
| Reset ProtectiveCover. More... | |
| bool | GetProtectiveCoverStatus (ProtectiveCoverStatus &status) |
| Get Status of ProtectiveCover. More... | |
| bool | SetCollectionCallBack (X1::CollectionCallBackPtr cb, UserPtr ctx) |
| Provide a callback to RVC system and it will be called when collection finished. More... | |
| bool | SetCalculationCallBack (X1::CalculationCallBackPtr cb, UserPtr ctx) |
| Provide a callback to RVC system and it will be called when calculation finished. More... | |
| bool | Capture (const CaptureOptions &opts) |
| Capture one point map and one image. This function will save capture options into camera. More... | |
| bool | Capture () |
| Capture one point map and one image. This function will load capture options from camera. More... | |
| bool | Capture2D (const CaptureOptions &opts) |
| Capture one image. This function will save capture options into camera. You can use GetImage() to obtain 2D imgae. More... | |
| bool | Capture2D () |
| Capture one image. This function will load capture options from camera. You can use GetImage() to obtain 2D imgae. More... | |
| bool | SetBandwidth (float percent) |
| Set the camera band width ratio. More... | |
| bool | GetBandwidth (float &percent) |
| Get the camera band width ratio. More... | |
| bool | SetCustomTransformation (const CustomTransformOptions &opts) |
| Set the Transformation of output point cloud. More... | |
| bool | GetCustomTransformation (CustomTransformOptions &opts) |
| Get the Custom Transformation object. More... | |
| bool | SaveEncodedImagesData (const char *addr) |
| Save encoded map in txt. More... | |
| Image | GetImage () |
| Get the Image object. More... | |
| DepthMap | GetDepthMap () |
| Get the DepthMap object. More... | |
| PointMap | GetPointMap () |
| Get the Point Map object. More... | |
| ConfidenceMap | GetConfidenceMap () |
| Get the Confidence Map object. More... | |
| bool | GetExtrinsicMatrix (float *matrix) |
| Get the extrinsic matrix (transformation from calibration board to specified camera) More... | |
| bool | GetIntrinsicParameters (float *instrinsic_matrix, float *distortion) |
| Get intrinsic and distortion parameters. More... | |
| bool | GetProjectorTemperature (float &temperature) |
| GetProjectorTemperature. More... | |
| bool | GetCameraTemperature (CameraTempSelector seletor, float &temperature) |
| GetCameraTemperature. More... | |
| bool | SetBalanceRatio (BalanceSelector selector, float value) |
| Set the white balance ratio value. More... | |
| bool | GetBalanceRatio (BalanceSelector selector, float *value) |
| Get the white balance ratio value. More... | |
| bool | GetBalanceRange (BalanceSelector selector, float *min_value, float *max_value) |
| Get the white balance ratio value range. More... | |
| bool | AutoWhiteBalance (int wb_times=10, const CaptureOptions &opts=CaptureOptions(), const RVC::ROI &roi=RVC::ROI()) |
| Only Color Camera can use this function. This function can get suitable white balance paramters. More... | |
| bool | GetExposureTimeRange (int *min_value, int *max_value) |
| Get the Exposure Time Range. More... | |
| bool | GetGainRange (float *min_value, float *max_value) |
| Get the Gain Range. More... | |
| bool | GetGammaRange (float *min_value, float *max_value) |
| Get the Gamma Range. More... | |
| bool | SaveCaptureOptionParameters (const X1::CaptureOptions &opts) |
| Save capture option parameters. More... | |
| bool | LoadCaptureOptionParameters (X1::CaptureOptions &opts) |
| Get capture option parameters. More... | |
| bool | GetAutoCaptureSetting (CaptureOptions &opts, const ROI &roi=ROI()) |
| Get auto capture setting. Exposure_time_2d, exposure_time_3d, projector_brightness, light_contrast_threshold will be adjusted automatically. automatically. More... | |
| bool | GetAutoHdrCaptureSetting (CaptureOptions &opts, const ROI &roi) |
| adjust 3D capturing parameters More... | |
| bool | GetAutoNoiseRemovalSetting (CaptureOptions &opts) |
| Automatically calculates and applies the optimal point cloud noise removal parameters. More... | |
| bool | LoadSettingFromFile (const char *filename) |
| Load camera setting from local file . More... | |
| bool | SaveSettingToFile (const char *filename) |
| Save camera setting to local file. More... | |
| bool | CheckRoi (ROI roi) |
| Check whether the parameters of ROI comply with the rules of Device. More... | |
| ROI | AutoAdjustRoi (ROI roi=ROI()) |
| Automatically correct the parameters of ROI. You need to correct ROI before Capture/Captrue2D. More... | |
| bool | GetRoiRange (ROIRange &range) |
| Get the range of ROI. | |
| bool | GetCameraResolution (Size &resolution) |
| Get Camera Resolution. More... | |
| bool | GetAuto2DExposureTime (CaptureOptions &opts, const ROI &roi=ROI()) |
| Get auto 2d exposure time automatically. More... | |
| Mesh | GetMesh () |
| Get the Mesh object. More... | |
| bool | SetCurrentUserSet (const int &id) |
| Set Current User Set by id. The user can utilize a total of 10 parameters groups to quickly adjust camera settings for different 3d imaging scenarios. More... | |
| bool | GetCurrentUserSet (int &id) |
| Get Current User Set's id. More... | |
| bool | SetUserSetName (const int &id, const char *name) |
| Set User Set's name with id. The user can briefly describe the usage scenario of this parameters groups by using a name. More... | |
| bool | GetUserSetName (const int &id, char *name) |
| Get Current User Set's name with id. More... | |
Static Public Member Functions | |
| static X1 | Create (const Device &d, enum CameraID camid=CameraID_Left) |
| Create a RVC X Camera and choose the CameraID which you desire before you use X1. More... | |
| static void | Destroy (X1 &x) |
| Release all X1 resources after you use X1. More... | |
Public Attributes | |
| Handle | m_handle |
| RVC Handle. | |
X1 struct.
| bool RVC::X1::AutoWhiteBalance | ( | int | wb_times = 10, |
| const CaptureOptions & | opts = CaptureOptions(), |
||
| const RVC::ROI & | roi = RVC::ROI() |
||
| ) |
Only Color Camera can use this function. This function can get suitable white balance paramters.
| wb_times | how many images used for calculate the white balance paramters |
| opts | capture options. exposure_time_2d, gain_2d, gamma_2d will be used. use_projector_capturing_2d_image == true, brightness will be used too. |
| roi | auto white balance will be operated here |
| bool RVC::X1::Capture | ( | const CaptureOptions & | opts | ) |
Capture one point map and one image. This function will save capture options into camera.
| opts | CaptureOptions |
| bool RVC::X1::Capture | ( | ) |
Capture one point map and one image. This function will load capture options from camera.
| bool RVC::X1::Capture2D | ( | const CaptureOptions & | opts | ) |
Capture one image. This function will save capture options into camera. You can use GetImage() to obtain 2D imgae.
| opts | CaptureOptions |
| bool RVC::X1::Capture2D | ( | ) |
Capture one image. This function will load capture options from camera. You can use GetImage() to obtain 2D imgae.
| bool RVC::X1::CheckRoi | ( | ROI | roi | ) |
| void RVC::X1::Close | ( | ) |
Close X1 after you Open it.
| bool RVC::X1::CloseProtectiveCover | ( | ) |
Close ProtectiveCover.
| bool RVC::X1::CloseProtectiveCoverAsync | ( | ) |
Close ProtectiveCover Async.
|
static |
| bool RVC::X1::GetAuto2DExposureTime | ( | CaptureOptions & | opts, |
| const ROI & | roi = ROI() |
||
| ) |
Get auto 2d exposure time automatically.
| opts | [in] |
| roi | [in] |
| bool RVC::X1::GetAutoCaptureSetting | ( | CaptureOptions & | opts, |
| const ROI & | roi = ROI() |
||
| ) |
Get auto capture setting. Exposure_time_2d, exposure_time_3d, projector_brightness, light_contrast_threshold will be adjusted automatically. automatically.
| opts |
| bool RVC::X1::GetAutoHdrCaptureSetting | ( | CaptureOptions & | opts, |
| const ROI & | roi | ||
| ) |
adjust 3D capturing parameters
| opts | [in,out] capture options. if hdr_exposure_times > 1, hdr_exposure_times and hdr_exposuretime_content will be adjusted. If hdr_exposure_times equals to 1, exposure_time_3d will be adjusted. |
| roi | [in] if width or height equal to 0, all image will be used. |
| bool RVC::X1::GetAutoNoiseRemovalSetting | ( | CaptureOptions & | opts | ) |
Automatically calculates and applies the optimal point cloud noise removal parameters.
WARNING: This is a time-consuming operation as it triggers actual camera captures. This function evaluates the current scene to determine the best cluster-based noise removal settings and applies them to the current point cloud.
| [in,out] | opts | Capture options. Upon successful execution, the following parameters inside this struct will be modified and overwritten:
|
| bool RVC::X1::GetBalanceRange | ( | BalanceSelector | selector, |
| float * | min_value, | ||
| float * | max_value | ||
| ) |
Get the white balance ratio value range.
| selector | support BalanceSelector_Red, BalanceSelector_Green and BalanceSelector_Blue |
| min_value | selector's minimum value |
| max_value | selector's maximum value |
| bool RVC::X1::GetBalanceRatio | ( | BalanceSelector | selector, |
| float * | value | ||
| ) |
Get the white balance ratio value.
| selector | support BalanceSelector_Red, BalanceSelector_Green and BalanceSelector_Blue |
| value | balance ratio value |
| bool RVC::X1::GetBandwidth | ( | float & | percent | ) |
Get the camera band width ratio.
| percent | Band width ratio |
| bool RVC::X1::GetCameraResolution | ( | Size & | resolution | ) |
Get Camera Resolution.
| resolution |
| bool RVC::X1::GetCameraTemperature | ( | CameraTempSelector | seletor, |
| float & | temperature | ||
| ) |
GetCameraTemperature.
| seletor | |
| &temperature |
| ConfidenceMap RVC::X1::GetConfidenceMap | ( | ) |
Get the Confidence Map object.
| bool RVC::X1::GetCurrentUserSet | ( | int & | id | ) |
Get Current User Set's id.
| id | [out] 0~9 |
| bool RVC::X1::GetCustomTransformation | ( | CustomTransformOptions & | opts | ) |
Get the Custom Transformation object.
| opts |
| bool RVC::X1::GetExposureTimeRange | ( | int * | min_value, |
| int * | max_value | ||
| ) |
Get the Exposure Time Range.
| min_value | exposure time minimum value |
| max_value | exposure time maxinum value |
| bool RVC::X1::GetExtrinsicMatrix | ( | float * | matrix | ) |
Get the extrinsic matrix (transformation from calibration board to specified camera)
| matrix | [out] 4x4 transformation matrix stored as a 16-element array in row-major order. The matrix represents the transformation from the calibration board coordinate system to the specified camera coordinate system. Format: [R11, R12, R13, T1, R21, R22, R23, T2, R31, R32, R33, T3, 0, 0, 0, 1] Where R is the 3x3 rotation matrix and T is the 3x1 translation vector. |
| bool RVC::X1::GetGainRange | ( | float * | min_value, |
| float * | max_value | ||
| ) |
Get the Gain Range.
| min_value | gain minimum value |
| max_value | gain minimum value |
| bool RVC::X1::GetGammaRange | ( | float * | min_value, |
| float * | max_value | ||
| ) |
Get the Gamma Range.
| min_value | gamma minimum value |
| max_value | gamma minimum value |
| bool RVC::X1::GetIntrinsicParameters | ( | float * | instrinsic_matrix, |
| float * | distortion | ||
| ) |
Get intrinsic and distortion parameters.
| instrinsicMatrix | [out] Output intrinsic matrix. This is a 9-element array storing a 3x3 matrix in row-major order: [fx, 0, cx, 0, fy, cy, 0, 0, 1]
|
| distortion | [out] Output distortion coefficients. This is a 5-element array containing: [k1, k2, k3, p1, p2]
|
| bool RVC::X1::GetProjectorTemperature | ( | float & | temperature | ) |
GetProjectorTemperature.
| &temperature |
| bool RVC::X1::GetProtectiveCoverStatus | ( | ProtectiveCoverStatus & | status | ) |
Get Status of ProtectiveCover.
| bool RVC::X1::GetUserSetName | ( | const int & | id, |
| char * | name | ||
| ) |
Get Current User Set's name with id.
| id | [in] |
| name | [out] |
| bool RVC::X1::IsOpen | ( | ) |
Check X1 is open or not.
| bool RVC::X1::IsPhysicallyConnected | ( | ) |
Check X1 is physically connected or not.
| bool RVC::X1::IsValid | ( | ) |
| bool RVC::X1::LoadCaptureOptionParameters | ( | X1::CaptureOptions & | opts | ) |
| bool RVC::X1::LoadSettingFromFile | ( | const char * | filename | ) |
Load camera setting from local file .
| filename | [in] |
| bool RVC::X1::Open | ( | ) |
Open X1 before you use it.
| bool RVC::X1::OpenProtectiveCover | ( | ) |
Open ProtectiveCover.
| bool RVC::X1::OpenProtectiveCoverAsync | ( | ) |
Open ProtectiveCover Async.
| bool RVC::X1::ResetProtectiveCover | ( | ) |
Reset ProtectiveCover.
| bool RVC::X1::SaveCaptureOptionParameters | ( | const X1::CaptureOptions & | opts | ) |
| bool RVC::X1::SaveEncodedImagesData | ( | const char * | addr | ) |
Save encoded map in txt.
| addr | save encoded images address |
| bool RVC::X1::SaveSettingToFile | ( | const char * | filename | ) |
Save camera setting to local file.
| filename | [in] |
| bool RVC::X1::SetBalanceRatio | ( | BalanceSelector | selector, |
| float | value | ||
| ) |
Set the white balance ratio value.
| selector | support BalanceSelector_Red, BalanceSelector_Green and BalanceSelector_Blue |
| value | balance ratio value |
| bool RVC::X1::SetBandwidth | ( | float | percent | ) |
Set the camera band width ratio.
| percent | Band width ratio |
| bool RVC::X1::SetCalculationCallBack | ( | X1::CalculationCallBackPtr | cb, |
| UserPtr | ctx | ||
| ) |
Provide a callback to RVC system and it will be called when calculation finished.
| cb | The callback |
| ctx | The user-pointer |
| bool RVC::X1::SetCollectionCallBack | ( | X1::CollectionCallBackPtr | cb, |
| UserPtr | ctx | ||
| ) |
Provide a callback to RVC system and it will be called when collection finished.
| cb | The callback |
| ctx | The user-pointer |
| bool RVC::X1::SetCurrentUserSet | ( | const int & | id | ) |
Set Current User Set by id. The user can utilize a total of 10 parameters groups to quickly adjust camera settings for different 3d imaging scenarios.
| id | [in] 0~9 |
| bool RVC::X1::SetCustomTransformation | ( | const CustomTransformOptions & | opts | ) |
Set the Transformation of output point cloud.
| opts | Custom Transform Options |
| bool RVC::X1::SetUserSetName | ( | const int & | id, |
| const char * | name | ||
| ) |
Set User Set's name with id. The user can briefly describe the usage scenario of this parameters groups by using a name.
| id | [in] |
| name | [in] |