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

Method setImageRegistrationMode

src/openni2/DepthStream.cpp:91–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89OniImageRegistrationMode DepthStream::getImageRegistrationMode() const { return image_registration_mode; }
90
91OniStatus DepthStream::setImageRegistrationMode(OniImageRegistrationMode mode)
92{
93 if (!isImageRegistrationModeSupported(mode))
94 return ONI_STATUS_NOT_SUPPORTED;
95 image_registration_mode = mode;
96 reg->setEnable(image_registration_mode == ONI_IMAGE_REGISTRATION_DEPTH_TO_COLOR);
97 return setVideoMode(video_mode);
98}
99
100// from StreamBase
101OniBool DepthStream::isImageRegistrationModeSupported(OniImageRegistrationMode mode) { return (mode == ONI_IMAGE_REGISTRATION_OFF || mode == ONI_IMAGE_REGISTRATION_DEPTH_TO_COLOR); }

Callers

nothing calls this directly

Calls 1

setEnableMethod · 0.80

Tested by

no test coverage detected