Unable to create Body tracking SDK by reading image

Hello all!

I am trying to create a body tracking SDK. But instead of using the depth sensor, I am trying to use the depth-map image to find the skeletal points. Can anyone suggest me how to use class (BitmapMask) in order to read the depth-map image as an input frame?