Skip to content

Commit

Permalink
uploading Kinect pointcloud fusion package
Browse files Browse the repository at this point in the history
  • Loading branch information
borsesaurabh2022 committed Dec 5, 2023
1 parent 6796be7 commit 1245cba
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Binary file added Kinect_PCLfusion/3DBV_Kinect_Fusion.mlx
Binary file not shown.
Binary file added Kinect_PCLfusion/Zimmer.mp4
Binary file not shown.
17 changes: 17 additions & 0 deletions Kinect_PCLfusion/makePointCloud.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
function [outputArg1] = makePointCloud(inputArg1, inputArg2)
% Turns Depth Image into Pointcloud
% inputArg1 is Depth Image, inputArg2 is Color Image
[s1, s2] = size(inputArg1);
% Preallocate 3D Matrix to put x,y and Depth Data
Punkte = zeros(s2, s1, 3);
for i = 1:s1
for j = 1:s2
Punkte(j,i,1) = j;
Punkte(j,i,2) = i;
Punkte(j,i,3) = inputArg1(i,j)*255;
end
end
% Transpose Image to fit Pointcloud data dimensions
rgbtranspose = pagetranspose(inputArg2);
outputArg1 = pointCloud(Punkte, 'Color',rgbtranspose);
end

0 comments on commit 1245cba

Please sign in to comment.