(self, filename, firstName=False)
return data
Load baseline data
        :param filename: file name of data
        :return: list with joint coordinates
Load baseline data
        :param filename: file name of data
        :return: list with joint coordinates
Load baseline data : param filename : file name of data : return : list with joint coordinates
def loadBaseline(self, filename, firstName=False):
        """
        Load baseline data
        :param filename: file name of data
        :return: list with joint coordinates
        """

        def nonblank_lines(f):
            for l in f:
                line = l.rstrip()
                if line:
                    yield line

        inputfile = open(filename)
        inputfile.seek(0)

        if firstName == True:
            off = 1
        else:
            off = 0

        data = []
        for line in nonblank_lines(inputfile):
            part = line.strip().split(' ')
            # joints in image coordinates
            ev = np.zeros((self.numJoints, 3), np.float32)
            for joint in range(ev.shape[0]):
                for xyz in range(0, 3):
                    ev[joint, xyz] = part[joint*3+xyz+off]

            gt3Dworld = self.jointsImgTo3D(ev)

            data.append(gt3Dworld)

        return data
def loadBaseline ( self , filename , firstName = False ) : def nonblank_lines ( f ) : for l in f : line = l . rstrip ( ) if line : yield line inputfile = open ( filename ) inputfile . seek ( 0 ) if firstName == True : off = 1 else : off = 0 data = [ ] for line in nonblank_lines ( inputfile ) : part = line . strip ( ) . split ( ' ' ) # joints in image coordinates ev = np . zeros ( ( self . numJoints , 3 ) , np . float32 ) for joint in range ( ev . shape [ 0 ] ) : for xyz in range ( 0 , 3 ) : ev [ joint , xyz ] = part [ joint * 3 + xyz + off ] gt3Dworld = self . jointsImgTo3D ( ev ) data . append ( gt3Dworld ) return data