def METHOD_NAME(self, data, voxelsize):
    ret =  getattr(skf, self._filtName)(data, **self.kwargs())
    if 'threshold' in self._filtName and np.isscalar(ret):
        #thresholding functions return the threshold value, not a mask
        #we want a mask
        return data > ret
    else:
        return ret