'This extractor takes in an image, creates the integral image, applies
the Haar cascades, and returns the result as a feature vector.'

def extract(self, img):

    regular = img.integralImage()
    retVal = []
    for i in range(len(self.mFeatureSet)):
        retVal.append(self.mFeatureSet[i].apply(regular))
    if self.mDo45:
        slant = img.integralImage(tilted=True)
        for i in range(len(self.mFeatureSet)):
            retVal.append(self.mFeatureSet[i].apply(regular))
    return retVal
