remove whitespace

This commit is contained in:
Zihao Mu 2022-08-22 11:14:59 +08:00
parent 925ff6241f
commit 1fb8d60fd2
4 changed files with 7 additions and 7 deletions

View File

@ -659,21 +659,21 @@ enum { CAP_PROP_IMAGES_BASE = 18000,
@{
*/
//! 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,

View File

@ -42,7 +42,7 @@
#include <mutex>
#include <vidcap.h> //IKsTopologyInfo
#include <ksproxy.h> //IKsControl
#include <ksmedia.h>
#include <ksmedia.h>
namespace cv {
namespace obsensor {

View File

@ -61,7 +61,7 @@ StreamType parseUvcDeviceNameToStreamType(const std::string& devName)
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)
{

View File

@ -17,7 +17,7 @@ int main()
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;