(self, filename)
return imgdata
Read a depth-map
        :param filename: file name to load
        :return: image data of depth image
Read a depth-map
        :param filename: file name to load
        :return: image data of depth image
Read a depth - map : param filename : file name to load : return : image data of depth image
def loadDepthMap(self, filename):
        """
        Read a depth-map
        :param filename: file name to load
        :return: image data of depth image
        """

        img = Image.open(filename)
        # top 8 bits of depth are packed into green channel and lower 8 bits into blue
        assert len(img.getbands()) == 3
        r, g, b = img.split()
        r = np.asarray(r, np.int32)
        g = np.asarray(g, np.int32)
        b = np.asarray(b, np.int32)
        dpt = np.bitwise_or(np.left_shift(g, 8), b)
        imgdata = np.asarray(dpt, np.float32)

        return imgdata
def loadDepthMap ( self , filename ) : img = Image . open ( filename ) # top 8 bits of depth are packed into green channel and lower 8 bits into blue assert len ( img . getbands ( ) ) == 3 r , g , b = img . split ( ) r = np . asarray ( r , np . int32 ) g = np . asarray ( g , np . int32 ) b = np . asarray ( b , np . int32 ) dpt = np . bitwise_or ( np . left_shift ( g , 8 ) , b ) imgdata = np . asarray ( dpt , np . float32 ) return imgdata