How to get depth data from raw file?

I'm using Intel RealSense Depth module D430. And I have a raw file of a frame that I got from IntelRealsense Viewer and I would like to import that file into MATLAB and get the depth values at one point (if it is possbile). How can I get this information from raw file?

댓글 수: 5

Beatriz Martins
Beatriz Martins 2020년 2월 11일
Thank you for the link, do you know how to it in Matlab?
Hank
Hank 2020년 2월 11일
From the same github repo, see the example using get_depth_frame method. Do some digging
https://github.com/IntelRealSense/librealsense/tree/master/wrappers/matlab
Beatriz Martins
Beatriz Martins 2020년 2월 11일
I already tried to use the same method as get_depth_frame but unfortunately I couldn't get any results.
Walter Roberson
Walter Roberson 2020년 2월 11일
https://linuxtv.org/downloads/v4l-dvb-apis/uapi/v4l/pixfmt-z16.html gives the file byte order of RAW files, and indicates that the bytes are in little-endian order, which is the same used on all current MATLAB implementations. You can fopen() and fread() using 'uint16' as the datatype
However it might be easier to loadlibrary() of the libsense or libsense2 library and use higher-level calls to retrieve information.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

질문:

2020년 2월 10일

댓글:

2020년 2월 11일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by