'**SUMMARY**
This method returns the Kinect depth image.
**RETURNS**
The Kinect\'s depth camera image as a grayscale image.
**EXAMPLE**
>>> k = Kinect()
>>> while True:
>>>   d = k.getDepth()
>>>   img = k.getImage()
>>>   result = img.sideBySide(d)
>>>   result.show()'

def getDepth(self):

    depth = freenect.sync_get_depth(self.deviceNumber)[0]
    self.capturetime = time.time()
    np.clip(depth, 0, ((2 ** 10) - 1), depth)
    depth >>= 2
    depth = depth.astype(np.uint8).transpose()
    return Image(depth, self)
