(self, sample)
return ret
Normalize sample to metric 3D
        :param sample: joints in (x,y,z) with x,y in image coordinates and z in mm
        :return: normalized joints in mm
Normalize sample to metric 3D
        :param sample: joints in (x,y,z) with x,y in image coordinates and z in mm
        :return: normalized joints in mm
Normalize sample to metric 3D : param sample : joints in ( x y z ) with x y in image coordinates and z in mm : return : normalized joints in mm
def jointImgTo3D(self, sample):
        """
        Normalize sample to metric 3D
        :param sample: joints in (x,y,z) with x,y in image coordinates and z in mm
        :return: normalized joints in mm
        """
        ret = np.zeros((3,), np.float32)
        # convert to metric using f
        ret[0] = (sample[0]-self.ux)*sample[2]/self.fx
        ret[1] = (sample[1]-self.uy)*sample[2]/self.fy
        ret[2] = sample[2]
        return ret
def jointImgTo3D ( self , sample ) : ret = np . zeros ( ( 3 , ) , np . float32 ) # convert to metric using f ret [ 0 ] = ( sample [ 0 ] - self . ux ) * sample [ 2 ] / self . fx ret [ 1 ] = ( sample [ 1 ] - self . uy ) * sample [ 2 ] / self . fy ret [ 2 ] = sample [ 2 ] return ret