def getMask(self, imageType):
    if (self._imageType != imageType):
        self._applyFilter(imageType)
    return self._current_mask
def getMask(self, imageType):
    if (self._imageType != imageType):
        self._applyFilter(imageType)
    return self._current_mask