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

Method getTextureIntensity

io/src/real_sense_2_grabber.cpp:338–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336 }
337
338 std::uint8_t
339 RealSense2Grabber::getTextureIntensity ( const rs2::video_frame& texture, float u, float v )
340 {
341 const auto idx = getTextureIdx (texture, u, v);
342 const auto texture_data = reinterpret_cast<const std::uint8_t*>(texture.get_data ());
343 return texture_data[idx];
344 }
345}

Callers

nothing calls this directly

Calls 1

get_dataMethod · 0.80

Tested by

no test coverage detected