'Return the segmented image with white representing the foreground
and black the background.'

def getSegmentedImage(self, whiteFG=True):

    retVal = None
    if whiteFG:
        retVal = self.mDiffImg.binarize(thresh=self.mThreshold)
    else:
        retVal = self.mDiffImg.binarize(thresh=self.mThreshold).invert()
    return retVal
