@{
*/
//! OBSENSOR data given from image generator
-enum VideoCaptureOBSensorDataType{
+enum VideoCaptureOBSensorDataType{
CAP_OBSENSOR_DEPTH_MAP = 0, //!< Depth values in mm (CV_16UC1)
CAP_OBSENSOR_BGR_IMAGE = 1, //!< Data given from BGR stream generator
CAP_OBSENSOR_IR_IMAGE = 2 //!< Data given from IR stream generator(CV_16UC1)
};
//! OBSENSOR stream generator
-enum VideoCaptureOBSensorGenerators{
+enum VideoCaptureOBSensorGenerators{
CAP_OBSENSOR_DEPTH_GENERATOR = 1 << 29,
CAP_OBSENSOR_IMAGE_GENERATOR = 1 << 28,
- CAP_OBSENSOR_IR_GENERATOR = 1 << 27,
+ CAP_OBSENSOR_IR_GENERATOR = 1 << 27,
CAP_OBSENSOR_GENERATORS_MASK = CAP_OBSENSOR_DEPTH_GENERATOR + CAP_OBSENSOR_IMAGE_GENERATOR + CAP_OBSENSOR_IR_GENERATOR
};
-//!OBSENSOR properties
+//!OBSENSOR properties
enum VideoCaptureOBSensorProperties{
// INTRINSIC
CAP_PROP_OBSENSOR_INTRINSIC_FX=26001,
std::string uvcDevName = devName;
for (size_t i = 0; i < uvcDevName.length(); i++)
{
- uvcDevName[i] = (char)tolower(uvcDevName[i]);
+ uvcDevName[i] = (char)tolower(uvcDevName[i]);
}
if (uvcDevName.find(" depth") != std::string::npos)
{
double cx = obsensorCapture.get(CAP_PROP_OBSENSOR_INTRINSIC_CX);
double cy = obsensorCapture.get(CAP_PROP_OBSENSOR_INTRINSIC_CY);
std::cout << "obsensor camera intrinsic params: fx=" << fx << ", fy=" << fy << ", cx=" << cx << ", cy=" << cy << std::endl;
-
+
Mat image;
Mat depthMap;
Mat adjDepthMap;