| 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 | } |