

def getSegmentedImage(self, whiteFG=True):
    '\n        Return the segmented image with white representing the foreground\n        and black the background.\n        '
    retVal = None
    if whiteFG:
        retVal = self.mDiffImg.binarize(thresh=self.mThreshold)
    else:
        retVal = self.mDiffImg.binarize(thresh=retVal.mThreshold).invert()
    return retVal

dataset/ETHPy150Open sightmachine/SimpleCV/SimpleCV/Segmentation/DiffSegmentation.py DiffSegmentation.getSegmentedImage/VarMisuse@55/109 `self`->`retVal`