Splitting binary files into different frames to create picture
이전 댓글 표시
Hi everyone;
So I used a program that allows me to record depth data from the Kinect and store it as a .binary file.
So I opened the binary file in MATLAB using the following code: fid = fopen('C:\KinectData\Depth\Depth_Raw_0.binary');
B = fread(fid,'int64');
fclose(fid);
n = 4; % No. of columns of T
BB = reshape(B, n,[]);
T = permute(BB,[2,1]);
imshow(T)
And the result I get is just a line. Its understandable since the variable T is holding all the frames at once.
So I need to find a way on how to split that binary file for let say 30FPS. The properties of each frame is 512X412.
Can anyone help me with that?
Thanks; Ali
댓글 수: 2
Abdulrahman Abdulrahman
2019년 1월 22일
Did you find the answer? please share it with us
Walter Roberson
2019년 1월 22일
frames = reshape(n, 512, 412, []);
답변 (1개)
Image Analyst
2014년 9월 11일
0 개 추천
Have you searched the forum for Kinect: http://www.mathworks.com/matlabcentral/answers/?term=tag%3A%22kinect%22
카테고리
도움말 센터 및 File Exchange에서 Kinect For Windows Sensor에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!