13 #if defined _WIN32 || defined __CYGWIN__ 16 #define RVC_EXPORT __attribute__((dllexport)) 18 #define RVC_EXPORT __declspec(dllexport) // Note: actually gcc seems to also supports this syntax. 22 #define RVC_EXPORT __attribute__((dllimport)) 24 #define RVC_EXPORT __declspec(dllimport) // Note: actually gcc seems to also supports this syntax. 27 #define RVC_NOT_EXPORT 30 #define RVC_EXPORT __attribute__((visibility("default"))) 31 #define RVC_NOT_EXPORT __attribute__((visibility("hidden"))) 34 #define RVC_NOT_EXPORT 64 Handle(HandleID sid_, HandleID gid_) : sid(sid_), gid(gid_) {}
113 Size() : width(0), height(0) {}
120 Size(
int w,
int h) : width(w), height(h) {}
133 int32_t height, rows;
146 return lhs.width == rhs.width && lhs.height == rhs.height;
157 return lhs.width != rhs.width || lhs.height != rhs.height;
169 ROI() : x(0), y(0), width(0), height(0) {}
178 ROI(
int x,
int y,
int w,
int h) : x(x), y(y), width(w), height(h) {}
289 static const char *ToString(ImageType::Enum type);
296 static size_t GetPixelSize(ImageType::Enum type);
313 static Image Create(ImageType::Enum it,
const Size sz,
unsigned char *data =
nullptr,
bool own_data =
true);
314 static Image CreateFromFile(
const char *addr);
321 static void Destroy(
Image img,
bool no_reuse =
true);
332 bool IsValid()
const;
338 Size GetSize()
const;
344 ImageType::Enum GetType()
const;
350 unsigned char *GetDataPtr()
const;
356 const unsigned char *GetDataConstPtr()
const;
365 bool SaveImage(
const char *addr)
const;
386 static DepthMap Create(
const Size sz,
double *data =
nullptr,
bool own_data =
true);
394 static void Destroy(
DepthMap depthmap,
bool no_reuse =
true);
414 double *GetDataPtr();
420 const double *GetDataConstPtr();
431 bool SaveDepthMap(
const char *address,
bool is_m =
true);
450 static ConfidenceMap Create(
const Size sz,
double *data =
nullptr,
bool own_data =
true);
458 static void Destroy(
ConfidenceMap confidencemap,
bool no_reuse =
true);
479 double *GetDataPtr();
485 const double *GetDataConstPtr();
515 static const char *ToString(
enum Enum e);
531 static const char *ToString(
Enum e);
564 static void Destroy(
PointMap pm,
bool no_reuse =
true);
581 bool IsValid()
const;
587 Size GetSize()
const;
593 double *GetPointDataPtr();
599 double *GetNormalDataPtr();
605 const double *GetPointDataConstPtr()
const;
611 const double *GetNormalDataConstPtr()
const;
624 bool GetPointMapSeperated(
double *x,
double *y,
double *z,
const double scale = 1.0);
640 static CorrespondMap Create(
const Size sz,
double *data =
nullptr,
bool own_data =
true);
641 static void Destroy(
CorrespondMap correspondMap,
bool no_reuse =
true);
645 double *GetDataPtr();
646 const double *GetDataConstPtr();
684 CameraID_Left = CameraID_0,
685 CameraID_Right = CameraID_1,
686 CameraID_Both = CameraID_Left | CameraID_Right,
687 CameraID_Extra = CameraID_2
709 NetworkType_DHCP = 0,
710 NetworkType_STATIC = 1,
719 ProjectorColor_None = 0,
720 ProjectorColor_Red = 1,
721 ProjectorColor_Green = 2,
722 ProjectorColor_Blue = 4,
723 ProjectorColor_White = 8,
724 ProjectorColor_ALL = ProjectorColor_Red | ProjectorColor_Green | ProjectorColor_Blue | ProjectorColor_White,
732 ProtectiveCoverStatus_Unknown = 0,
733 ProtectiveCoverStatus_Closed = 1,
734 ProtectiveCoverStatus_Closing = 2,
735 ProtectiveCoverStatus_Open = 3,
736 ProtectiveCoverStatus_Opening = 4,
744 BalanceSelector_None = 0,
746 BalanceSelector_Green,
747 BalanceSelector_Blue,
755 NetworkDevice_LightMachine = 0,
756 NetworkDevice_LeftCamera = 1,
757 NetworkDevice_RightCamera = 2,
758 NetworkDevice_ExtraCamera = 3,
767 NetworkDeviceStatus_OK,
768 NetworkDeviceStatus_Not_Reachable,
769 NetworkDeviceStatus_In_Use,
770 NetworkDeviceStatus_Conflict,
779 CaptureMode_Fast = 1 << 0,
780 CaptureMode_Normal = 1 << 1,
781 CaptureMode_Ultra = 1 << 2,
782 CaptureMode_Robust = 1 << 3,
783 CaptureMode_AntiInterReflection = 1 << 4,
784 CaptureMode_SwingLineScan = 1 << 5,
785 CaptureMode_FixedLineScan = 1 << 6,
786 CaptureMode_LineArrayShift = 1 << 7,
787 CaptureMode_All = CaptureMode_Fast | CaptureMode_Normal | CaptureMode_Ultra | CaptureMode_Robust |
788 CaptureMode_AntiInterReflection | CaptureMode_SwingLineScan | CaptureMode_FixedLineScan |
789 CaptureMode_LineArrayShift,
810 char factroydate[32];
817 int workingdist_near_mm;
818 int workingdist_far_mm;
819 char firmware_version[128];
822 bool support_protective_cover;
836 static void Destroy(
Device d);
843 bool IsValid()
const;
868 const char *gateway);
888 bool UpgradeFirmware(
const char *device_firmware_path,
const char *config_data_path);
895 bool IsFirmwareMatch(
void);
980 enum CameraTempSelector {
981 CameraTempSelector_Camera,
982 CameraTempSelector_CoreBoard,
983 CameraTempSelector_FpgaCore,
984 CameraTempSelector_Framegrabberboard,
985 CameraTempSelector_Sensor,
986 CameraTempSelector_SensorBoard,
989 enum SmoothnessLevel { SmoothnessLevel_Off, SmoothnessLevel_Weak, SmoothnessLevel_Normal, SmoothnessLevel_Strong };
992 typedef void *UserPtr;
998 struct RVC_EXPORT
X1 {
1010 calc_normal =
false;
1011 transform_to_camera =
true;
1012 use_auto_noise_removal =
true;
1013 noise_removal_distance = 0;
1014 noise_removal_point_number = 40;
1015 light_contrast_threshold = 3;
1016 phase_filter_range = 0;
1017 projector_brightness = 240;
1018 exposure_time_2d = 11;
1019 exposure_time_3d = 11;
1022 hdr_exposure_times = 0;
1023 hdr_exposuretime_content[0] = 11;
1024 hdr_exposuretime_content[1] = 20;
1025 hdr_exposuretime_content[2] = 50;
1030 hdr_scan_times[0] = 1;
1031 hdr_scan_times[1] = 1;
1032 hdr_scan_times[2] = 1;
1034 hdr_projector_brightness[0] = 240;
1035 hdr_projector_brightness[1] = 240;
1036 hdr_projector_brightness[2] = 240;
1037 calc_normal_radius = 5;
1040 use_projector_capturing_2d_image =
true;
1041 smoothness = SmoothnessLevel_Off;
1042 downsample_distance = 0.0;
1043 capture_mode = CaptureMode_Normal;
1044 confidence_threshold = 0;
1046 truncate_z_min = -9999.f;
1047 truncate_z_max = 9999.f;
1048 bilateral_filter_kernal_size = 0;
1049 bilateral_filter_depth_sigma = 0;
1050 bilateral_filter_space_sigma = 0;
1052 use_auto_bilateral_filter =
true;
1053 reflection_filter_threshold = 0;
1054 smooth_sigma = 1.75;
1055 enable_2d_in_capture =
true;
1141 int hdr_exposuretime_content[3];
1146 float hdr_gain_3d[3];
1152 int hdr_scan_times[3];
1158 int hdr_projector_brightness[3];
1183 "smoothness has been deprecated in CPU version,use smooth_sigma instead")]] SmoothnessLevel
smoothness;
1293 CoordinateSelect_Disabled,
1294 CoordinateSelect_Camera,
1295 CoordinateSelect_CaliBoard,
1299 : coordinate_select(CoordinateSelect_Disabled), transform{1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1} {}
1312 double transform[16];
1355 static void Destroy(
X1 &x);
1397 bool IsPhysicallyConnected();
1404 bool OpenProtectiveCover();
1411 bool OpenProtectiveCoverAsync();
1418 bool CloseProtectiveCover();
1425 bool CloseProtectiveCoverAsync();
1432 bool ResetProtectiveCover();
1461 bool SetCalculationCallBack(X1::CalculationCallBackPtr cb, UserPtr ctx);
1505 bool SetBandwidth(
float percent);
1514 bool GetBandwidth(
float &percent);
1538 bool SaveEncodedImagesData(
const char *addr);
1578 bool GetExtrinsicMatrix(
float *matrix);
1593 bool GetIntrinsicParameters(
float *instrinsic_matrix,
float *distortion);
1600 bool GetProjectorTemperature(
float &temperature);
1608 [[deprecated]]
bool GetCameraTemperature(CameraTempSelector seletor,
float &temperature);
1637 bool GetBalanceRange(
BalanceSelector selector,
float *min_value,
float *max_value);
1660 bool GetExposureTimeRange(
int *min_value,
int *max_value);
1670 bool GetGainRange(
float *min_value,
float *max_value);
1680 bool GetGammaRange(
float *min_value,
float *max_value);
1689 bool SaveCaptureOptionParameters(
const X1::CaptureOptions &opts);
1698 bool LoadCaptureOptionParameters(X1::CaptureOptions &opts);
1731 bool LoadSettingFromFile(
const char *filename);
1739 bool SaveSettingToFile(
const char *filename);
1747 bool CheckRoi(
ROI roi);
1768 bool GetCameraResolution(
Size &resolution);
1793 transform_to_camera = CameraID_Left;
1794 projector_brightness = 240;
1795 calc_normal =
false;
1796 calc_normal_radius = 5;
1797 use_auto_noise_removal =
true;
1798 noise_removal_distance = 0;
1799 noise_removal_point_number = 40;
1800 light_contrast_threshold = 3;
1801 edge_noise_reduction_threshold = 2;
1802 exposure_time_2d = 11;
1803 exposure_time_3d = 11;
1806 hdr_exposure_times = 0;
1807 hdr_exposuretime_content[0] = 11;
1808 hdr_exposuretime_content[1] = 20;
1809 hdr_exposuretime_content[2] = 50;
1814 hdr_scan_times[0] = 1;
1815 hdr_scan_times[1] = 1;
1816 hdr_scan_times[2] = 1;
1818 hdr_projector_brightness[0] = 240;
1819 hdr_projector_brightness[1] = 240;
1820 hdr_projector_brightness[2] = 240;
1823 projector_color = ProjectorColor_Blue;
1824 use_projector_capturing_2d_image =
true;
1825 smoothness = SmoothnessLevel_Off;
1826 downsample_distance = 0.0;
1827 capture_mode = CaptureMode_Normal;
1828 confidence_threshold = 0;
1831 bilateral_filter_kernal_size = 0;
1832 bilateral_filter_depth_sigma = 0;
1833 bilateral_filter_space_sigma = 0;
1835 line_scanner_scan_time_ms = 1000;
1836 line_scanner_exposure_time_us = 300;
1837 line_scanner_min_distance = 0;
1838 line_scanner_max_distance = 0;
1840 correspond2d =
false;
1841 line_scanner_laser_position = 65536 / 2;
1842 use_auto_bilateral_filter =
true;
1843 reflection_filter_threshold = 0;
1844 smooth_sigma = 1.75;
1847 enable_2d_in_capture =
true;
1848 pointcloud_completion =
false;
1849 line_scanner_brightness_threshold = 5;
1914 int hdr_exposuretime_content[3];
1919 float hdr_gain_3d[3];
1924 int hdr_projector_brightness[3];
1950 "smoothness has been deprecated in CPU version,use smooth_sigma instead")]] SmoothnessLevel
smoothness;
2000 int hdr_scan_times[3];
2119 CoordinateSelect_Disabled,
2120 CoordinateSelect_CameraLeft,
2121 CoordinateSelect_CameraRight,
2122 CoordinateSelect_CaliBoard,
2123 CoordinateSelect_CameraExtra,
2127 : coordinate_select(CoordinateSelect_Disabled), transform{1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1} {}
2139 double transform[16];
2177 static void Destroy(
X2 &x);
2210 bool IsPhysicallyConnected();
2217 bool OpenProtectiveCover();
2224 bool OpenProtectiveCoverAsync();
2231 bool CloseProtectiveCover();
2238 bool CloseProtectiveCoverAsync();
2245 bool ResetProtectiveCover();
2272 bool SetCalculationCallBack(X2::CalculationCallBackPtr cb, UserPtr ctx);
2306 bool StartFixedLineScan();
2313 [[deprecated(
"Use bool GetFixedLineScanPointMap(PointMap &point_map) instead")]]
PointMap 2314 GetFixedLineScanPointMap();
2322 bool GetFixedLineScanPointMap(
PointMap &point_map);
2330 bool StopFixedLineScan();
2350 bool Capture2D(
const CameraID cid);
2358 bool SetBandwidth(
float percent);
2367 bool GetBandwidth(
float &percent);
2434 bool GetExtrinsicMatrix(
const CameraID cid,
float *matrix);
2452 bool GetIntrinsicParameters(
const CameraID cid,
float *instrinsicMatrix,
float *distortion);
2459 bool GetProjectorTemperature(
float &temperature);
2468 [[deprecated]]
bool GetCameraTemperature(
const CameraID cid, CameraTempSelector seletor,
float &temperature);
2489 bool GetExposureTimeRange(
int *min_value,
int *max_value);
2498 bool GetGainRange(
float *min_value,
float *max_value);
2507 bool GetGammaRange(
float *min_value,
float *max_value);
2514 bool SaveEncodedImagesData(
const char *addr);
2523 bool SaveCaptureOptionParameters(
const X2::CaptureOptions &opts);
2532 bool LoadCaptureOptionParameters(X2::CaptureOptions &opts);
2565 bool LoadSettingFromFile(
const char *filename);
2573 bool SaveSettingToFile(
const char *filename);
2581 bool CheckRoi(
ROI roi);
2602 bool GetCameraResolution(
Size &resolution);
2610 Point3D(
double x = 0.0,
double y = 0.0,
double z = 0.0) : x(x), y(y), z(z) {}
2619 Point3D At(
int rows,
int cols) {
2623 printf(
"RVC::Utils: Invalid");
2625 }
else if (rows >= sz.rows || cols >= sz.cols) {
2626 printf(
"RVC::Utils: Invalid rows and cols(%d, %d), size(%d, %d)", rows, cols, sz.rows, sz.cols);
2636 void Set(
int rows,
int cols,
const Point3D p) {
2639 printf(
"RVC::Utils: Invalid");
2641 }
else if (rows >= sz.rows || cols >= sz.cols) {
2642 printf(
"RVC::Utils: Invalid rows and cols(%d, %d), size(%d, %d)", rows, cols, sz.rows, sz.cols);
2657 template <
typename T,
typename H>
2658 T _At(H handle,
int rows,
int cols) {
2661 if (!handle.IsValid()) {
2662 printf(
"RVC::Utils: Invalid");
2665 }
else if (rows >= sz.rows || cols >= sz.cols) {
2666 printf(
"RVC::Utils: Invalid rows and cols(%d, %d), size(%d, %d)", rows, cols, sz.rows, sz.cols);
2670 return *(handle.GetDataConstPtr() + rows * sz.cols + cols);
2674 template <
typename T,
typename H>
2675 void _Set(H handle,
int rows,
int cols,
const T v) {
2677 if (!handle.IsValid()) {
2678 printf(
"RVC::Utils: Invalid");
2680 }
else if (rows >= sz.rows || cols >= sz.cols) {
2681 printf(
"RVC::Utils: Invalid rows and cols(%d, %d), size(%d, %d)", rows, cols, sz.rows, sz.cols);
2684 *(handle.GetDataPtr() + rows * sz.cols + cols) = v;
2691 unsigned char At(
int rows,
int cols) {
return _At<unsigned char>(img, rows, cols); }
2692 void Set(
int rows,
int cols,
const unsigned char v) { _Set(img, rows, cols, v); }
2701 double At(
int rows,
int cols) {
return _At<double>(cm, rows, cols); }
2702 void Set(
int rows,
int cols,
const double v) { _Set(cm, rows, cols, v); }
2711 double At(
int rows,
int cols) {
return _At<double>(dm, rows, cols); }
2712 void Set(
int rows,
int cols,
const double v) { _Set(dm, rows, cols, v); }
X1 struct.
Definition: RVC.h:998
int reflection_filter_threshold
Used to remove large-area erroneous point clouds caused by reflections. The higher this value is set...
Definition: RVC.h:1266
BalanceSelector
White balance ratio selector, suport BalanceSelector_Red, BalanceSelector_Green and BalanceSelector_B...
Definition: RVC.h:743
ProtectiveCoverStatus
Protective Cover Status.
Definition: RVC.h:731
CaptureMode capture_mode
control capture mode
Definition: RVC.h:1984
double confidence_threshold
confidence threshold, the point with confindence low then this value will be removed range: [0...
Definition: RVC.h:1202
bool calc_normal
flag Whether calculate 3D points normal vector
Definition: RVC.h:1061
int filter_range
Set the noise filter value. The larger the value, the greater the filtering degree. The default value has been changed to 0 from 1 after v1.6.1.
Definition: RVC.h:1073
RVC_EXPORT void SystemSetLoggerName(const char *loggerName)
Set the name of logger.
int y
start y of Image roi (row index of roi up left corner)
Definition: RVC.h:188
Handle m_handle
RVC Handle.
Definition: RVC.h:370
int exposure_time_2d
Set the exposure_time 2D value in milliseconds.
Definition: RVC.h:1889
RVC_EXPORT int GetLastError()
Get last error of RVC SDK.
int projector_brightness
Set the projector brightness value.
Definition: RVC.h:1121
SmoothnessLevel smoothness
control point map smoothness
Definition: RVC.h:1950
int exposure_time_3d
Set the exposure_time 3D value in milliseconds.
Definition: RVC.h:1894
Capture options.
Definition: RVC.h:1787
Handle m_handle
RVC Handle.
Definition: RVC.h:900
RVC X Device info.
Definition: RVC.h:807
RVC_EXPORT const char * GetVersion()
Get the Version of RVC SDK.
double smooth_sigma
The Gaussian filters are used to smooth points. The larger the smooth_sigma, the smoother the point c...
Definition: RVC.h:2074
NetworkDevice
NetworkDevie, support NetworkDevice_LightMachine, NetworkDevice_LeftCamera and NetworkDevice_RightCam...
Definition: RVC.h:754
int light_contrast_threshold
Light contrast trheshold, range in [0, 10]. The contrast of point less than this value will be treat ...
Definition: RVC.h:1101
double truncate_z_max
truncate point map and depth map by z direction maximum value (units: mm) and truncate_z_max should m...
Definition: RVC.h:1224
bool use_auto_bilateral_filter
flag Whether to use auto bilateral filter. If true, the bilateral_filter_kernal_size and bilateral_fi...
Definition: RVC.h:2058
X1 CollectionCallBackInfo.
Definition: RVC.h:1318
Size GetSize() const
Get the PointMap Size object.
float gamma_2d
Set the 2D gamma value in milliseconds.
Definition: RVC.h:1929
int phase_filter_range
Set the phase filter value. The larger the value, the greater the filtering degree 0~40...
Definition: RVC.h:1106
void(* CollectionCallBackPtr)(X2::CollectionCallBackInfo, X2::CaptureOptions, UserPtr)
X2 CallBackPtr.
Definition: RVC.h:2162
X2 CollectionCallBackInfo.
Definition: RVC.h:2145
Handle(HandleID sid_, HandleID gid_)
Construct a new Handle object with sid and gid.
Definition: RVC.h:64
double downsample_distance
uniform downsample distance. if <= 0, do nothing.
Definition: RVC.h:1978
int width_max
Maximum value of width of Image roi.
Definition: RVC.h:240
ProjectorColor projector_color
projector color
Definition: RVC.h:1938
double noise_removal_distance
The smaller the value, the greater the filtering degree. range: 0 ~ 20 (units: mm) ...
Definition: RVC.h:1091
bool use_auto_bilateral_filter
flag Whether to use auto bilateral filter. If true, the bilateral_filter_kernal_size and bilateral_fi...
Definition: RVC.h:1258
double bilateral_filter_space_sigma
the guassian sigma in space of bilateral filter of depth map range: [0, 100]
Definition: RVC.h:2021
RVC X PointMap Type.
Definition: RVC.h:498
int light_contrast_threshold
Light contrast trheshold, range in [0, 10]. The contrast of point less than this value will be treat ...
Definition: RVC.h:1878
Handle m_handle
RVC Handle.
Definition: RVC.h:636
CameraID
CameraID, support CameraID_Left and CameraID_Right
Definition: RVC.h:678
int width_step
step of width of Image roi
Definition: RVC.h:220
Enum
RVC camera type, support USB, GigE and All
Definition: RVC.h:913
CaptureOptions()
Construct a new Capture Options object.
Definition: RVC.h:1792
double truncate_z_min
truncate point map and depth map by z direction minimum value (units: mm) and truncate_z_min should l...
Definition: RVC.h:1217
int scan_times
scan times, only use in robust mode. range [2, 8],
Definition: RVC.h:1995
uint32_t HandleID
Handle id 4 bytes long.
Definition: RVC.h:47
int line_scanner_brightness_threshold
Only laser lines with brightness greater than the 'line_scanner_brightness_threshold' will be extract...
Definition: RVC.h:2105
RVC::ROI roi
set ROI function, only 3d points in the roi will be generated. This function can improve 3d capturesp...
Definition: RVC.h:1210
double bilateral_filter_depth_sigma
the guassian sigma in depth of bilateral filter of depth map range: [0, 100]
Definition: RVC.h:1238
float gamma_3d
Set the 3D gamma value.
Definition: RVC.h:1172
int width_min
Minimum value of width of Image roi.
Definition: RVC.h:230
bool pointcloud_completion
In 'CaptureMode_SwingLineScan' mode with 'correspond2d' enabled,turning on 'pointcloud_completion' wi...
Definition: RVC.h:2093
ROI()
Construct a new Image ROI object.
Definition: RVC.h:169
bool operator!=(const Size &lhs, const Size &rhs)
Compare two Image size.
Definition: RVC.h:156
CaptureMode capture_mode
control capture mode
Definition: RVC.h:1195
RVC Handle.
Definition: RVC.h:52
RVC_EXPORT const char * GetLastErrorMessage()
Get the lastest error message. The pointer to string is temporary, you need to copy data from its buf...
int edge_noise_reduction_threshold
edge control after point matching, range in [0, 10], default = 2. The big the value, the more edge noise to be removed.
Definition: RVC.h:1884
unsigned int calc_normal_radius
Neighborhood radius in pixel of calculating normal, > 0.
Definition: RVC.h:1871
double * GetPointDataPtr()
Get the Point Data Ptr of PointMap object.
Capture options.
Definition: RVC.h:1004
Enum
Unit support Meter and Millimeter
Definition: RVC.h:522
bool calc_normal
flag Whether calculate 3D points normal vector
Definition: RVC.h:1866
X1 CalculationCallBackInfo.
Definition: RVC.h:1325
Handle & operator=(const Handle &rhs)
Assigns new Object to the Handle object, replace its current parameters.
Definition: RVC.h:78
int height_step
step of height of Image roi
Definition: RVC.h:225
int reflection_filter_threshold
Used to remove large-area erroneous point clouds caused by reflections. The higher this value is set...
Definition: RVC.h:2066
X2 CalculationCallBackInfo.
Definition: RVC.h:2152
ROI(int x, int y, int w, int h)
Construct a new Image ROI object with x,y,w,h.
Definition: RVC.h:178
Image ROI.
Definition: RVC.h:164
int exposure_time_3d
Set the exposure_time 3D value in milliseconds.
Definition: RVC.h:1116
double smooth_sigma
The Gaussian filters are used to smooth points. The larger the smooth_sigma, the smoother the point c...
Definition: RVC.h:1274
int bilateral_filter_kernal_size
the kernal size of bilateral filter of depth map range: [3, 31], 0 for not use bilateral filter ...
Definition: RVC.h:1231
Device ROIRange.
Definition: RVC.h:205
float gamma_2d
Set the 2D gamma value.
Definition: RVC.h:1167
int x_step
step of x of Image roi (col index of roi up left corner)
Definition: RVC.h:210
int hdr_exposure_times
Set the hdr exposure times value. 0,2,3.
Definition: RVC.h:1136
bool correspond2d
whether to generate point clouds corresponding to 2D images
Definition: RVC.h:2044
NetworkType
RVC supported Camera Network type.
Definition: RVC.h:708
int exposure_time_2d
Set the exposure_time 2D value in milliseconds.
Definition: RVC.h:1111
Size GetSize()
Get the DepthMap Size object.
RVC_EXPORT bool SystemInit()
SystemInit.
Definition: PythonAPI.py:353
bool operator==(const Size &lhs, const Size &rhs)
Compare two Image size.
Definition: RVC.h:145
Size(int w, int h)
Construct a new Image/PointMap Size object with width/cols and height/rows.
Definition: RVC.h:120
PortType
RVC supported Camera Port type.
Definition: RVC.h:695
Image Type.
Definition: RVC.h:276
Device struct.
Definition: RVC.h:830
ProjectorColor
Projector color, support ProjectorColor_Red, ProjectorColor_Green, ProjectorColor_Blue, ProjectorColor_White and ProjectorColor_ALL
Definition: RVC.h:718
SmoothnessLevel smoothness
control point map smoothness
Definition: RVC.h:1183
CaptureOptions()
Construct a new Capture Options object.
Definition: RVC.h:1009
bool transform_to_camera
flag Whether transfrom 3D points from calibration board system to camera coordinate system ...
Definition: RVC.h:1066
unsigned int calc_normal_radius
Neighborhood radius in pixel of calculating normal, > 0.
Definition: RVC.h:1162
float gamma_3d
Set the 3D gamma value in milliseconds.
Definition: RVC.h:1934
bool operator==(const Handle &rhs)
Compare with another Handle object.
Definition: RVC.h:90
double downsample_distance
uniform downsample distance. if <= 0, do nothing.
Definition: RVC.h:1189
RVC_EXPORT void SystemShutdown()
SystemShutdown.
Definition: PythonAPI.py:365
RVC_EXPORT int SystemListDevices(Device *pdevices, size_t size, size_t *actual_size, SystemListDeviceType::Enum opt=SystemListDeviceType::All)
List the fix number devices.
Size GetSize()
Get the Size object.
int noise_removal_point_number
Set the noise filter parameter 2. The larger the value, the greater the filtering degree...
Definition: RVC.h:1972
Handle m_handle
DepthMap Handle.
Definition: RVC.h:437
float gain_3d
Set the 3D gain value in milliseconds.
Definition: RVC.h:1904
int bilateral_filter_kernal_size
the kernal size of bilateral filter of depth map range: [3, 31], 0 for not use bilateral filter ...
Definition: RVC.h:2007
Handle(const Handle &rhs)
Construct a new Handle object with another Handle.
Definition: RVC.h:70
RVC X DepthMap.
Definition: RVC.h:377
int line_scanner_max_distance
Set line scanner mode's maximum working distance.
Definition: RVC.h:2038
Handle m_handle
RVC Handle.
Definition: RVC.h:1774
Size()
Construct a new Image/PointMap Size object.
Definition: RVC.h:113
bool use_auto_noise_removal
flag Whether to use auto noise removal. If true, the noise_removal_distance and noise_removal_point_n...
Definition: RVC.h:1086
RVC_EXPORT bool SystemIsInited()
Check system is inited or not.
Definition: PythonAPI.py:359
RVC_EXPORT Device SystemFindDevice(const char *serialNumber)
Return the device according to the serialNumber, if the device is valid.
RVC X PointMap.
Definition: RVC.h:538
int line_scanner_scan_time_ms
Set line scanner mode's total scan time.
Definition: RVC.h:2026
bool enable_2d_in_capture
Acquire 2D images during capture.
Definition: RVC.h:1279
void(* CollectionCallBackPtr)(X1::CollectionCallBackInfo, X1::CaptureOptions, UserPtr)
X1 CallBackPtr.
Definition: RVC.h:1335
float gain_2d
Set the 2D gain value in milliseconds.
Definition: RVC.h:1899
X2 struct.
Definition: RVC.h:1782
int hdr_exposure_times
Set the hdr exposure times value. 0,2,3.
Definition: RVC.h:1909
int x
start x of Image roi (col index of roi up left corner)
Definition: RVC.h:183
bool use_projector_capturing_2d_image
Set 2D image whether use projector.
Definition: RVC.h:1943
int line_scanner_min_distance
Set line scanner mode's minimum working distance.
Definition: RVC.h:2034
bool operator!=(const Handle &rhs)
Compare with another Handle object.
Definition: RVC.h:98
RVC::ROI roi
set ROI function, only 3d points in the roi will be generated. This function can improve 3d capture s...
Definition: RVC.h:2082
Handle()
Construct a new Handle object.
Definition: RVC.h:57
int height_max
Maximum value of height of Image roi.
Definition: RVC.h:245
int width
Image roi width.
Definition: RVC.h:193
double confidence_threshold
confidence threshold, the point with confindence low then this value will be removed range: [0...
Definition: RVC.h:1991
bool enable_2d_in_capture
Acquire 2D images during capture.
Definition: RVC.h:2087
float gain_2d
Set the 2D gain value.
Definition: RVC.h:1126
int scan_times
scan times, only use in robust mode. range [2, 8],
Definition: RVC.h:1250
Handle m_handle
confidence map handle
Definition: RVC.h:491
double bilateral_filter_depth_sigma
the guassian sigma in depth of bilateral filter of depth map range: [0, 100]
Definition: RVC.h:2014
int projector_brightness
Set the projector brightness value.
Definition: RVC.h:1861
Enum
PointMap Type Support type PointsOnly and PointsNormals
Definition: RVC.h:504
System list Device type.
Definition: RVC.h:908
Image/PointMap Size.
Definition: RVC.h:108
double noise_removal_distance
The smaller the value, the greater the filtering degree. range: 0 ~ 20 (units: mm) ...
Definition: RVC.h:1968
NetworkDeviceStatus_
NetworkDevieStatus, support NetworkDeviceStatus_OK, NetworkDeviceStatus_Not_Reachable, NetworkDeviceStatus_In_Use and NetworkDeviceStatus_Conflict
Definition: RVC.h:766
uint16_t line_scanner_laser_position
select laser position in fixed line scan mode
Definition: RVC.h:2050
bool use_projector_capturing_2d_image
Set 2D image whether use projector.
Definition: RVC.h:1177
double bilateral_filter_space_sigma
the guassian sigma in space of bilateral filter of depth map range: [0, 100]
Definition: RVC.h:1245
int y_step
step of y of Image roi (row index of roi up left corner)
Definition: RVC.h:215
int noise_removal_point_number
Set the noise filter parameter 2. The larger the value, the greater the filtering degree...
Definition: RVC.h:1095
Size GetSize() const
Get the Image Size object.
int height_min
Minimum value of height of Image roi.
Definition: RVC.h:235
RVC X Image object.
Definition: RVC.h:303
CaptureMode
CaptureMode, support CaptureMode_Fast, CaptureMode_Normal, CaptureMode_Ultra, CaptureMode_Robust, CaptureMode_AntiInterReflection and CaptureMode_SwingLineScan
Definition: RVC.h:778
CameraID transform_to_camera
CameraID_Left transfrom 3D points from calibration board system to left camera coordinate system Came...
Definition: RVC.h:1856
int line_scanner_exposure_time_us
Set line scanner mode's single line exposure time.
Definition: RVC.h:2030
bool IsValid() const
Check PointMap is Valid or not.
int height
Image roi height.
Definition: RVC.h:198
bool use_auto_noise_removal
flag Whether to use auto noise removal. If true, the noise_removal_distance and noise_removal_point_n...
Definition: RVC.h:1963
RVC namespace.
Definition: QuickStart.dox:1
float gain_3d
Set the 3D gain value.
Definition: RVC.h:1131