代码部分
主要使用了SDK中的frame.images()获取图像
遗憾的是,获取的图像仅为8位
摘自官方文档的说明:
If a 32-bit-per-component texture format is not available on your target platform, you can use a separate texture for the x and y lookup values and encode the floating point values into multiple 8-bit color components. You then have to decode the values before using them to look up the raw brightness values.
也就是说Leap Motion并不能像Kinect那样通过像素点得到精确的深度信息值
#include "Leap.h"
#include <iostream>
// OpenCV Header
#include<opencv2/opencv.hpp>
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"

本文介绍了使用Leap Motion C++ SDK获取图像的过程,但注意到图像为8位,无法直接获取精确的深度信息,官方建议通过编码解码方式处理。实现了从 Leap Motion 设备中获取并展示红外摄像头图像的效果。
最低0.47元/天 解锁文章
2006

被折叠的 条评论
为什么被折叠?



