MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / processDepthFrame

Method processDepthFrame

io/src/openni2_grabber.cpp:880–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

878
879
880void pcl::io::OpenNI2Grabber::processDepthFrame (openni::VideoStream& stream)
881{
882 openni::VideoFrameRef frame;
883 stream.readFrame (&frame);
884 FrameWrapper::Ptr frameWrapper(new Openni2FrameWrapper(frame));
885
886 float focalLength = device_->getDepthFocalLength ();
887
888 float baseline = device_->getBaseline();
889 std::uint64_t no_sample_value = device_->getShadowValue();
890 std::uint64_t shadow_value = no_sample_value;
891
892 DepthImage::Ptr image (new DepthImage (frameWrapper, baseline, focalLength, shadow_value, no_sample_value));
893
894 depthCallback (image, nullptr);
895}
896
897
898void pcl::io::OpenNI2Grabber::processIRFrame (openni::VideoStream& stream)

Callers

nothing calls this directly

Calls 3

getDepthFocalLengthMethod · 0.45
getBaselineMethod · 0.45
getShadowValueMethod · 0.45

Tested by

no test coverage detected