Measuring 3D Distances between points using Kinect

Now time to move on to some simple application from the kinect depth image. As I mentioned , Kinect keep track of depth values of all the pixels related to pixel position. That points are corresponding to the real world instances of points. So every point on this depth image can be considered as three dimensional vector as (X, Y, V) as below. X Value, Y Value, Z Value, from the Cartesian coordinate system. We can demonstrate the point as 3 Dimensional vector shown below, So if we denote two instant of point as Vector, We can easily calculate distances between them. C = V1 – U1 Then we can get magnitude of the C, that’s mean the distance between Point1 and Point2. Before Explaining the How I code , I will show the Code and Result, Result has pretty good accuracy as I expected. To implement a vector, we can use PVector Data type form the processing with tree argument...