How can I export .mkv file containing depth data to .ply file?

조회 수: 10 (최근 30일)
海志
海志 2023년 10월 5일
답변: praguna manvi 2024년 10월 10일
I am planning to output 4 minutes of depth data as a .mkv file recorded using kinect as a ply file.
I saw on the following page how to connect kinect directly and read the point cloud, but I couldn't figure out how to read the point cloud from the mkv file that is already output.Kinect for Windows からの点群 - MATLAB pcfromkinect - MathWorks 日本
I would appreciate it if you could tell me how to do this.

답변 (1개)

praguna manvi
praguna manvi 2024년 10월 10일
Hi @海志,
As I understand it, you already have the video containing depth frames, which can be extracted using the VideoReader function. You can refer to this link for more information:
The depth frames can be visualized as a point cloud using the pcfromdepth function directly as follows:
ptCloud = pcfromdepth(depthImage,depthScaleFactor, intrinsics, ...
ColorImage=colorImage, ...
DepthRange=[0 maxCameraDepth]);
More infomation on “pcfromdepth” function can be found at this link:
Hope this helps !

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by