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

Method setImageRegistrationMode

src/openni2/ColorStream.cpp:126–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124OniSensorType ColorStream::getSensorType() const { return ONI_SENSOR_COLOR; }
125
126OniStatus ColorStream::setImageRegistrationMode(OniImageRegistrationMode mode)
127{
128 if (mode == ONI_IMAGE_REGISTRATION_DEPTH_TO_COLOR) {
129 // XXX, switch color resolution to 512x424 for registrarion here
130 OniVideoMode video_mode = makeOniVideoMode(ONI_PIXEL_FORMAT_RGB888, 512, 424, 30);
131 setProperty(ONI_STREAM_PROPERTY_VIDEO_MODE, &video_mode, sizeof(video_mode));
132 }
133 return ONI_STATUS_OK;
134}
135
136// from StreamBase
137OniBool ColorStream::isPropertySupported(int propertyId)

Callers 1

setPropertyMethod · 0.45

Calls 1

makeOniVideoModeFunction · 0.85

Tested by

no test coverage detected