Items with no label
3335 Discussions

realsense D435 raw data

idata
Employee
3,449 Views

hello

I have RS D435 and I would like to know if there is a way to read

the raw data file that created with "Intel RealSense Viewer"

in the SDK C++ ?

or even better if I can read it with Matlab ?

thanks,

roobi

0 Kudos
3 Replies
MartyG
Honored Contributor III
1,410 Views

The link below contains scripting for recording files and playing them bak.

https://github.com/IntelRealSense/librealsense/blob/master/src/media/readme.md librealsense/readme.md at master · IntelRealSense/librealsense · GitHub

The release of a MATLAB wrapper for RealSense SDK 2.0 is due soon.

Also, a user recently used the script below to read a created raw depth stream in MATLAB. Presumably, you should change the 'IntelDepth.raw' file reference to whatever the name of your own file is.

***********

FID = fopen('IntelDepth.raw');

DepthImage = fread(FID, [720, 1280], 'uint8');

fclose(FID)

0 Kudos
idata
Employee
1,410 Views

in the link you send, I can only find how to read "*.bag" files

this methods don't work for "*.raw" files

in addition, this script will open the file correctly,

you need to read line by line and then transpose the matrix.

FID = fopen('IntelDepth.raw');

DepthImage = fread(FID, [1280, 720], 'uint16')';

fclose(FID);

thanks for you help.

0 Kudos
MartyG
Honored Contributor III
1,410 Views

There is a discussion on the MATLAB forum about opening a .raw in MATLAB.

https://uk.mathworks.com/matlabcentral/answers/72525-how-to-open-raw-files-in-matlab How to open .raw files in matlab? - MATLAB Answers - MATLAB Central

Contributors on that discussion suggested that it can be hard to open a .raw in MATLAB because there are different types of .raw and you need to find out the particular configuration values of your .raw

0 Kudos
Reply