MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / DepthStream

Method DepthStream

src/openni2/DepthStream.cpp:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46const double DepthStream::EMITTER_DCMOS_DISTANCE_VAL = 7.5;
47
48DepthStream::DepthStream(Device* driver_dev, libfreenect2::Freenect2Device* pDevice, Freenect2Driver::Registration *reg) : VideoStream(driver_dev, pDevice, reg)
49{
50 //video_mode = makeOniVideoMode(ONI_PIXEL_FORMAT_DEPTH_1_MM, 512, 424, 30);
51 video_mode = makeOniVideoMode(ONI_PIXEL_FORMAT_DEPTH_1_MM, 640, 480, 30);
52 setVideoMode(video_mode);
53 setImageRegistrationMode(ONI_IMAGE_REGISTRATION_OFF);
54}
55
56// Add video modes here as you implement them
57// Note: if image_registration_mode == ONI_IMAGE_REGISTRATION_DEPTH_TO_COLOR,

Callers

nothing calls this directly

Calls 1

makeOniVideoModeFunction · 0.85

Tested by

no test coverage detected