'fname = file name
nfeats = number of features to load from file -1 -> All features'

def readWavelets(self, fname, nfeats=(-1)):

    self.mFeatureSet = []
    f = open(fname, 'r')
    temp = f.read()
    f.close()
    data = temp.split()
    count = int(data.pop(0))
    self.mFeatureset = []
    if (nfeats > (-1)):
        count = min(count, nfeats)
    while (len(data) > 0):
        name = data.pop(0)
        nRegions = int(data.pop(0))
        region = []
        for i in range(nRegions):
            region.append(tuple(map(float, data[0:5])))
            data = data[5:]
        feat = HaarLikeFeature(name, region)
        self.mFeatureSet.append(feat)
    return None
