This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OPT8241-CDK-EVM: Voxel Viewer Software Question

Part Number: OPT8241-CDK-EVM

Hi team,

The customer has some questions for the Voxel Viewer Software. 

The customer exports the pcd file. The export file is the bin file or the dat file. 

He would like to get how to open the bin file or the dat file using Matlab. Would you provide some suggestions?

Best Wishes,
Mickey Zhang
Asia Customer Support Center
Texas Instruments

  • Hi Mike, 

    The *.bin files have the phase/amplitude/ambient/flags data and is stored as an unsigned integer - 16 bits each for phase and amplitude and eight bits each for flags and ambient. For depth and distance the datatype is 32 bit float. 

    All the data is bundled one after the other, row-first. So, the file needs to be read correctly (as an array with the correct data type) and then the array needs to be reshaped to (frame count, cols, rows). this will show the image in Matlab.