# This file was automatically generated by SWIG (https://www.swig.org).
# Version 4.4.1
#
# Do not make changes to this file unless you know what you are doing - modify
# the SWIG interface file instead.


import collections

from sys import version_info as _version_info
if _version_info < (3, 7, 0):
    raise RuntimeError("Python 3.7 or later required")

from . import _ITKCommonPython


from . import _ITKWatershedsPython



from sys import version_info as _swig_python_version_info
# Import the low-level C/C++ module
if getattr(globals().get("__spec__"), "parent", None) or __package__ or "." in __name__:
    from . import _itkWatershedImageFilterPython
else:
    import _itkWatershedImageFilterPython

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

def _swig_repr(self):
    try:
        strthis = "proxy of " + self.this.__repr__()
    except __builtin__.Exception:
        strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)


def _swig_setattr_nondynamic_instance_variable(set):
    def set_instance_attr(self, name, value):
        if name == "this":
            set(self, name, value)
        elif name == "thisown":
            self.this.own(value)
        elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add instance attributes to %s" % self)
    return set_instance_attr


def _swig_setattr_nondynamic_class_variable(set):
    def set_class_attr(cls, name, value):
        if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
            set(cls, name, value)
        else:
            raise AttributeError("You cannot add class attributes to %s" % cls)
    return set_class_attr


def _swig_add_metaclass(metaclass):
    """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
    def wrapper(cls):
        return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
    return wrapper


class _SwigNonDynamicMeta(type):
    """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
    __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)


if _swig_python_version_info[0:2] >= (3, 3):
    import collections.abc
else:
    import collections

import itk.itkImageToImageFilterAPython
import itk.itkImageSourcePython
import itk.itkImageRegionPython
import itk.ITKCommonBasePython
import itk.itkMatrixPython
import itk.itkPointPython
import itk.vnl_vectorPython
import itk.stdcomplexPython
import itk.pyBasePython
import itk.vnl_matrixPython
import itk.itkVectorPython
import itk.itkFixedArrayPython
import itk.vnl_vector_refPython
import itk.vnl_matrix_fixedPython
import itk.itkCovariantVectorPython
import itk.itkIndexPython
import itk.itkOffsetPython
import itk.itkSizePython
import itk.itkImageSourceCommonPython
import itk.itkImagePython
import itk.itkRGBAPixelPython
import itk.itkSymmetricSecondRankTensorPython
import itk.itkRGBPixelPython
import itk.itkVectorImagePython
import itk.itkVariableLengthVectorPython
import itk.itkPhasedArray3DSpecialCoordinatesImagePython
import itk.itkImageToImageFilterCommonPython

def itkWatershedImageFilterIF2_New():
    return itkWatershedImageFilterIF2.New()

class itkWatershedImageFilterIF2(itk.itkImageToImageFilterAPython.itkImageToImageFilterIF2IUL2):
    r"""Proxy of C++ itkWatershedImageFilterIF2 class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined")
    __repr__ = _swig_repr

    @staticmethod
    def __New_orig__():
        r"""__New_orig__() -> itkWatershedImageFilterIF2_Pointer"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF2___New_orig__()

    def Clone(self):
        r"""Clone(self) -> itkWatershedImageFilterIF2_Pointer"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF2_Clone(self)

    def GenerateData(self):
        r"""GenerateData(self)"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF2_GenerateData(self)

    def SetInput(self, *args):
        r"""
        SetInput(self, input)

        Parameters
        ----------
        input: itkImageF2 const *

        SetInput(self, i, image)

        Parameters
        ----------
        i: unsigned int
        image: itkImageF2 const *

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF2_SetInput(self, *args)

    def SetThreshold(self, arg0):
        r"""
        SetThreshold(self, arg0)

        Parameters
        ----------
        arg0: double

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF2_SetThreshold(self, arg0)

    def GetThreshold(self):
        r"""GetThreshold(self) -> double"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF2_GetThreshold(self)

    def SetLevel(self, arg0):
        r"""
        SetLevel(self, arg0)

        Parameters
        ----------
        arg0: double

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF2_SetLevel(self, arg0)

    def GetLevel(self):
        r"""GetLevel(self) -> double"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF2_GetLevel(self)

    def GetBasicSegmentation(self):
        r"""GetBasicSegmentation(self) -> itkImageUL2"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF2_GetBasicSegmentation(self)

    def GetSegmentTree(self):
        r"""GetSegmentTree(self) -> itk::watershed::SegmentTree< float > *"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF2_GetSegmentTree(self)
    InputEqualityComparableCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterIF2_InputEqualityComparableCheck
    
    InputAdditiveOperatorsCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterIF2_InputAdditiveOperatorsCheck
    
    DoubleInputMultiplyOperatorCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterIF2_DoubleInputMultiplyOperatorCheck
    
    InputLessThanComparableCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterIF2_InputLessThanComparableCheck
    
    __swig_destroy__ = _itkWatershedImageFilterPython.delete_itkWatershedImageFilterIF2

    @staticmethod
    def cast(obj):
        r"""
        cast(obj) -> itkWatershedImageFilterIF2

        Parameters
        ----------
        obj: itkLightObject *

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF2_cast(obj)

    def New(*args, **kargs):
        """New() -> itkWatershedImageFilterIF2

        Create a new object of the class itkWatershedImageFilterIF2 and set the input and the parameters if some
        named or non-named arguments are passed to that method.

        New() tries to assign all the non named parameters to the input of the new objects - the
        first non named parameter in the first input, etc.

        The named parameters are used by calling the method with the same name prefixed by 'Set'.

        Ex:

          itkWatershedImageFilterIF2.New(reader, threshold=10)

        is (most of the time) equivalent to:

          obj = itkWatershedImageFilterIF2.New()
          obj.SetInput(0, reader.GetOutput())
          obj.SetThreshold(10)
        """
        obj = itkWatershedImageFilterIF2.__New_orig__()
        from itk.support import template_class
        template_class.New(obj, *args, **kargs)
        return obj
    New = staticmethod(New)


# Register itkWatershedImageFilterIF2 in _itkWatershedImageFilterPython:
_itkWatershedImageFilterPython.itkWatershedImageFilterIF2_swigregister(itkWatershedImageFilterIF2)

def itkWatershedImageFilterIF3_New():
    return itkWatershedImageFilterIF3.New()

class itkWatershedImageFilterIF3(itk.itkImageToImageFilterAPython.itkImageToImageFilterIF3IUL3):
    r"""Proxy of C++ itkWatershedImageFilterIF3 class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined")
    __repr__ = _swig_repr

    @staticmethod
    def __New_orig__():
        r"""__New_orig__() -> itkWatershedImageFilterIF3_Pointer"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF3___New_orig__()

    def Clone(self):
        r"""Clone(self) -> itkWatershedImageFilterIF3_Pointer"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF3_Clone(self)

    def GenerateData(self):
        r"""GenerateData(self)"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF3_GenerateData(self)

    def SetInput(self, *args):
        r"""
        SetInput(self, input)

        Parameters
        ----------
        input: itkImageF3 const *

        SetInput(self, i, image)

        Parameters
        ----------
        i: unsigned int
        image: itkImageF3 const *

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF3_SetInput(self, *args)

    def SetThreshold(self, arg0):
        r"""
        SetThreshold(self, arg0)

        Parameters
        ----------
        arg0: double

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF3_SetThreshold(self, arg0)

    def GetThreshold(self):
        r"""GetThreshold(self) -> double"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF3_GetThreshold(self)

    def SetLevel(self, arg0):
        r"""
        SetLevel(self, arg0)

        Parameters
        ----------
        arg0: double

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF3_SetLevel(self, arg0)

    def GetLevel(self):
        r"""GetLevel(self) -> double"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF3_GetLevel(self)

    def GetBasicSegmentation(self):
        r"""GetBasicSegmentation(self) -> itkImageUL3"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF3_GetBasicSegmentation(self)

    def GetSegmentTree(self):
        r"""GetSegmentTree(self) -> itk::watershed::SegmentTree< float > *"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF3_GetSegmentTree(self)
    InputEqualityComparableCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterIF3_InputEqualityComparableCheck
    
    InputAdditiveOperatorsCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterIF3_InputAdditiveOperatorsCheck
    
    DoubleInputMultiplyOperatorCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterIF3_DoubleInputMultiplyOperatorCheck
    
    InputLessThanComparableCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterIF3_InputLessThanComparableCheck
    
    __swig_destroy__ = _itkWatershedImageFilterPython.delete_itkWatershedImageFilterIF3

    @staticmethod
    def cast(obj):
        r"""
        cast(obj) -> itkWatershedImageFilterIF3

        Parameters
        ----------
        obj: itkLightObject *

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIF3_cast(obj)

    def New(*args, **kargs):
        """New() -> itkWatershedImageFilterIF3

        Create a new object of the class itkWatershedImageFilterIF3 and set the input and the parameters if some
        named or non-named arguments are passed to that method.

        New() tries to assign all the non named parameters to the input of the new objects - the
        first non named parameter in the first input, etc.

        The named parameters are used by calling the method with the same name prefixed by 'Set'.

        Ex:

          itkWatershedImageFilterIF3.New(reader, threshold=10)

        is (most of the time) equivalent to:

          obj = itkWatershedImageFilterIF3.New()
          obj.SetInput(0, reader.GetOutput())
          obj.SetThreshold(10)
        """
        obj = itkWatershedImageFilterIF3.__New_orig__()
        from itk.support import template_class
        template_class.New(obj, *args, **kargs)
        return obj
    New = staticmethod(New)


# Register itkWatershedImageFilterIF3 in _itkWatershedImageFilterPython:
_itkWatershedImageFilterPython.itkWatershedImageFilterIF3_swigregister(itkWatershedImageFilterIF3)

def itkWatershedImageFilterISS2_New():
    return itkWatershedImageFilterISS2.New()

class itkWatershedImageFilterISS2(itk.itkImageToImageFilterAPython.itkImageToImageFilterISS2IUL2):
    r"""Proxy of C++ itkWatershedImageFilterISS2 class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined")
    __repr__ = _swig_repr

    @staticmethod
    def __New_orig__():
        r"""__New_orig__() -> itkWatershedImageFilterISS2_Pointer"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS2___New_orig__()

    def Clone(self):
        r"""Clone(self) -> itkWatershedImageFilterISS2_Pointer"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS2_Clone(self)

    def GenerateData(self):
        r"""GenerateData(self)"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS2_GenerateData(self)

    def SetInput(self, *args):
        r"""
        SetInput(self, input)

        Parameters
        ----------
        input: itkImageSS2 const *

        SetInput(self, i, image)

        Parameters
        ----------
        i: unsigned int
        image: itkImageSS2 const *

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS2_SetInput(self, *args)

    def SetThreshold(self, arg0):
        r"""
        SetThreshold(self, arg0)

        Parameters
        ----------
        arg0: double

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS2_SetThreshold(self, arg0)

    def GetThreshold(self):
        r"""GetThreshold(self) -> double"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS2_GetThreshold(self)

    def SetLevel(self, arg0):
        r"""
        SetLevel(self, arg0)

        Parameters
        ----------
        arg0: double

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS2_SetLevel(self, arg0)

    def GetLevel(self):
        r"""GetLevel(self) -> double"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS2_GetLevel(self)

    def GetBasicSegmentation(self):
        r"""GetBasicSegmentation(self) -> itkImageUL2"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS2_GetBasicSegmentation(self)

    def GetSegmentTree(self):
        r"""GetSegmentTree(self) -> itk::watershed::SegmentTree< short > *"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS2_GetSegmentTree(self)
    InputEqualityComparableCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterISS2_InputEqualityComparableCheck
    
    InputAdditiveOperatorsCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterISS2_InputAdditiveOperatorsCheck
    
    DoubleInputMultiplyOperatorCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterISS2_DoubleInputMultiplyOperatorCheck
    
    InputLessThanComparableCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterISS2_InputLessThanComparableCheck
    
    __swig_destroy__ = _itkWatershedImageFilterPython.delete_itkWatershedImageFilterISS2

    @staticmethod
    def cast(obj):
        r"""
        cast(obj) -> itkWatershedImageFilterISS2

        Parameters
        ----------
        obj: itkLightObject *

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS2_cast(obj)

    def New(*args, **kargs):
        """New() -> itkWatershedImageFilterISS2

        Create a new object of the class itkWatershedImageFilterISS2 and set the input and the parameters if some
        named or non-named arguments are passed to that method.

        New() tries to assign all the non named parameters to the input of the new objects - the
        first non named parameter in the first input, etc.

        The named parameters are used by calling the method with the same name prefixed by 'Set'.

        Ex:

          itkWatershedImageFilterISS2.New(reader, threshold=10)

        is (most of the time) equivalent to:

          obj = itkWatershedImageFilterISS2.New()
          obj.SetInput(0, reader.GetOutput())
          obj.SetThreshold(10)
        """
        obj = itkWatershedImageFilterISS2.__New_orig__()
        from itk.support import template_class
        template_class.New(obj, *args, **kargs)
        return obj
    New = staticmethod(New)


# Register itkWatershedImageFilterISS2 in _itkWatershedImageFilterPython:
_itkWatershedImageFilterPython.itkWatershedImageFilterISS2_swigregister(itkWatershedImageFilterISS2)

def itkWatershedImageFilterISS3_New():
    return itkWatershedImageFilterISS3.New()

class itkWatershedImageFilterISS3(itk.itkImageToImageFilterAPython.itkImageToImageFilterISS3IUL3):
    r"""Proxy of C++ itkWatershedImageFilterISS3 class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined")
    __repr__ = _swig_repr

    @staticmethod
    def __New_orig__():
        r"""__New_orig__() -> itkWatershedImageFilterISS3_Pointer"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS3___New_orig__()

    def Clone(self):
        r"""Clone(self) -> itkWatershedImageFilterISS3_Pointer"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS3_Clone(self)

    def GenerateData(self):
        r"""GenerateData(self)"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS3_GenerateData(self)

    def SetInput(self, *args):
        r"""
        SetInput(self, input)

        Parameters
        ----------
        input: itkImageSS3 const *

        SetInput(self, i, image)

        Parameters
        ----------
        i: unsigned int
        image: itkImageSS3 const *

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS3_SetInput(self, *args)

    def SetThreshold(self, arg0):
        r"""
        SetThreshold(self, arg0)

        Parameters
        ----------
        arg0: double

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS3_SetThreshold(self, arg0)

    def GetThreshold(self):
        r"""GetThreshold(self) -> double"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS3_GetThreshold(self)

    def SetLevel(self, arg0):
        r"""
        SetLevel(self, arg0)

        Parameters
        ----------
        arg0: double

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS3_SetLevel(self, arg0)

    def GetLevel(self):
        r"""GetLevel(self) -> double"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS3_GetLevel(self)

    def GetBasicSegmentation(self):
        r"""GetBasicSegmentation(self) -> itkImageUL3"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS3_GetBasicSegmentation(self)

    def GetSegmentTree(self):
        r"""GetSegmentTree(self) -> itk::watershed::SegmentTree< short > *"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS3_GetSegmentTree(self)
    InputEqualityComparableCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterISS3_InputEqualityComparableCheck
    
    InputAdditiveOperatorsCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterISS3_InputAdditiveOperatorsCheck
    
    DoubleInputMultiplyOperatorCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterISS3_DoubleInputMultiplyOperatorCheck
    
    InputLessThanComparableCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterISS3_InputLessThanComparableCheck
    
    __swig_destroy__ = _itkWatershedImageFilterPython.delete_itkWatershedImageFilterISS3

    @staticmethod
    def cast(obj):
        r"""
        cast(obj) -> itkWatershedImageFilterISS3

        Parameters
        ----------
        obj: itkLightObject *

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterISS3_cast(obj)

    def New(*args, **kargs):
        """New() -> itkWatershedImageFilterISS3

        Create a new object of the class itkWatershedImageFilterISS3 and set the input and the parameters if some
        named or non-named arguments are passed to that method.

        New() tries to assign all the non named parameters to the input of the new objects - the
        first non named parameter in the first input, etc.

        The named parameters are used by calling the method with the same name prefixed by 'Set'.

        Ex:

          itkWatershedImageFilterISS3.New(reader, threshold=10)

        is (most of the time) equivalent to:

          obj = itkWatershedImageFilterISS3.New()
          obj.SetInput(0, reader.GetOutput())
          obj.SetThreshold(10)
        """
        obj = itkWatershedImageFilterISS3.__New_orig__()
        from itk.support import template_class
        template_class.New(obj, *args, **kargs)
        return obj
    New = staticmethod(New)


# Register itkWatershedImageFilterISS3 in _itkWatershedImageFilterPython:
_itkWatershedImageFilterPython.itkWatershedImageFilterISS3_swigregister(itkWatershedImageFilterISS3)

def itkWatershedImageFilterIUC2_New():
    return itkWatershedImageFilterIUC2.New()

class itkWatershedImageFilterIUC2(itk.itkImageToImageFilterAPython.itkImageToImageFilterIUC2IUL2):
    r"""Proxy of C++ itkWatershedImageFilterIUC2 class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined")
    __repr__ = _swig_repr

    @staticmethod
    def __New_orig__():
        r"""__New_orig__() -> itkWatershedImageFilterIUC2_Pointer"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC2___New_orig__()

    def Clone(self):
        r"""Clone(self) -> itkWatershedImageFilterIUC2_Pointer"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC2_Clone(self)

    def GenerateData(self):
        r"""GenerateData(self)"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC2_GenerateData(self)

    def SetInput(self, *args):
        r"""
        SetInput(self, input)

        Parameters
        ----------
        input: itkImageUC2 const *

        SetInput(self, i, image)

        Parameters
        ----------
        i: unsigned int
        image: itkImageUC2 const *

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC2_SetInput(self, *args)

    def SetThreshold(self, arg0):
        r"""
        SetThreshold(self, arg0)

        Parameters
        ----------
        arg0: double

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC2_SetThreshold(self, arg0)

    def GetThreshold(self):
        r"""GetThreshold(self) -> double"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC2_GetThreshold(self)

    def SetLevel(self, arg0):
        r"""
        SetLevel(self, arg0)

        Parameters
        ----------
        arg0: double

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC2_SetLevel(self, arg0)

    def GetLevel(self):
        r"""GetLevel(self) -> double"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC2_GetLevel(self)

    def GetBasicSegmentation(self):
        r"""GetBasicSegmentation(self) -> itkImageUL2"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC2_GetBasicSegmentation(self)

    def GetSegmentTree(self):
        r"""GetSegmentTree(self) -> itk::watershed::SegmentTree< unsigned char > *"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC2_GetSegmentTree(self)
    InputEqualityComparableCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterIUC2_InputEqualityComparableCheck
    
    InputAdditiveOperatorsCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterIUC2_InputAdditiveOperatorsCheck
    
    DoubleInputMultiplyOperatorCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterIUC2_DoubleInputMultiplyOperatorCheck
    
    InputLessThanComparableCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterIUC2_InputLessThanComparableCheck
    
    __swig_destroy__ = _itkWatershedImageFilterPython.delete_itkWatershedImageFilterIUC2

    @staticmethod
    def cast(obj):
        r"""
        cast(obj) -> itkWatershedImageFilterIUC2

        Parameters
        ----------
        obj: itkLightObject *

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC2_cast(obj)

    def New(*args, **kargs):
        """New() -> itkWatershedImageFilterIUC2

        Create a new object of the class itkWatershedImageFilterIUC2 and set the input and the parameters if some
        named or non-named arguments are passed to that method.

        New() tries to assign all the non named parameters to the input of the new objects - the
        first non named parameter in the first input, etc.

        The named parameters are used by calling the method with the same name prefixed by 'Set'.

        Ex:

          itkWatershedImageFilterIUC2.New(reader, threshold=10)

        is (most of the time) equivalent to:

          obj = itkWatershedImageFilterIUC2.New()
          obj.SetInput(0, reader.GetOutput())
          obj.SetThreshold(10)
        """
        obj = itkWatershedImageFilterIUC2.__New_orig__()
        from itk.support import template_class
        template_class.New(obj, *args, **kargs)
        return obj
    New = staticmethod(New)


# Register itkWatershedImageFilterIUC2 in _itkWatershedImageFilterPython:
_itkWatershedImageFilterPython.itkWatershedImageFilterIUC2_swigregister(itkWatershedImageFilterIUC2)

def itkWatershedImageFilterIUC3_New():
    return itkWatershedImageFilterIUC3.New()

class itkWatershedImageFilterIUC3(itk.itkImageToImageFilterAPython.itkImageToImageFilterIUC3IUL3):
    r"""Proxy of C++ itkWatershedImageFilterIUC3 class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined")
    __repr__ = _swig_repr

    @staticmethod
    def __New_orig__():
        r"""__New_orig__() -> itkWatershedImageFilterIUC3_Pointer"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC3___New_orig__()

    def Clone(self):
        r"""Clone(self) -> itkWatershedImageFilterIUC3_Pointer"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC3_Clone(self)

    def GenerateData(self):
        r"""GenerateData(self)"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC3_GenerateData(self)

    def SetInput(self, *args):
        r"""
        SetInput(self, input)

        Parameters
        ----------
        input: itkImageUC3 const *

        SetInput(self, i, image)

        Parameters
        ----------
        i: unsigned int
        image: itkImageUC3 const *

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC3_SetInput(self, *args)

    def SetThreshold(self, arg0):
        r"""
        SetThreshold(self, arg0)

        Parameters
        ----------
        arg0: double

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC3_SetThreshold(self, arg0)

    def GetThreshold(self):
        r"""GetThreshold(self) -> double"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC3_GetThreshold(self)

    def SetLevel(self, arg0):
        r"""
        SetLevel(self, arg0)

        Parameters
        ----------
        arg0: double

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC3_SetLevel(self, arg0)

    def GetLevel(self):
        r"""GetLevel(self) -> double"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC3_GetLevel(self)

    def GetBasicSegmentation(self):
        r"""GetBasicSegmentation(self) -> itkImageUL3"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC3_GetBasicSegmentation(self)

    def GetSegmentTree(self):
        r"""GetSegmentTree(self) -> itk::watershed::SegmentTree< unsigned char > *"""
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC3_GetSegmentTree(self)
    InputEqualityComparableCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterIUC3_InputEqualityComparableCheck
    
    InputAdditiveOperatorsCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterIUC3_InputAdditiveOperatorsCheck
    
    DoubleInputMultiplyOperatorCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterIUC3_DoubleInputMultiplyOperatorCheck
    
    InputLessThanComparableCheck = _itkWatershedImageFilterPython.itkWatershedImageFilterIUC3_InputLessThanComparableCheck
    
    __swig_destroy__ = _itkWatershedImageFilterPython.delete_itkWatershedImageFilterIUC3

    @staticmethod
    def cast(obj):
        r"""
        cast(obj) -> itkWatershedImageFilterIUC3

        Parameters
        ----------
        obj: itkLightObject *

        """
        return _itkWatershedImageFilterPython.itkWatershedImageFilterIUC3_cast(obj)

    def New(*args, **kargs):
        """New() -> itkWatershedImageFilterIUC3

        Create a new object of the class itkWatershedImageFilterIUC3 and set the input and the parameters if some
        named or non-named arguments are passed to that method.

        New() tries to assign all the non named parameters to the input of the new objects - the
        first non named parameter in the first input, etc.

        The named parameters are used by calling the method with the same name prefixed by 'Set'.

        Ex:

          itkWatershedImageFilterIUC3.New(reader, threshold=10)

        is (most of the time) equivalent to:

          obj = itkWatershedImageFilterIUC3.New()
          obj.SetInput(0, reader.GetOutput())
          obj.SetThreshold(10)
        """
        obj = itkWatershedImageFilterIUC3.__New_orig__()
        from itk.support import template_class
        template_class.New(obj, *args, **kargs)
        return obj
    New = staticmethod(New)


# Register itkWatershedImageFilterIUC3 in _itkWatershedImageFilterPython:
_itkWatershedImageFilterPython.itkWatershedImageFilterIUC3_swigregister(itkWatershedImageFilterIUC3)

from itk.support import helpers
import itk.support.types as itkt
from typing import Sequence, Tuple, Union

@helpers.accept_array_like_xarray_torch
def watershed_image_filter(*args: itkt.ImageLike,  threshold: float=..., level: float=...,**kwargs)-> itkt.ImageSourceReturn:
    """Functional interface for WatershedImageFilter"""
    import itk

    kwarg_typehints = { 'threshold':threshold,'level':level }
    specified_kwarg_typehints = { k:v for (k,v) in kwarg_typehints.items() if kwarg_typehints[k] is not ... }
    kwargs.update(specified_kwarg_typehints)


    instance = itk.WatershedImageFilter.New(*args, **kwargs)

    return instance.__internal_call__()

def watershed_image_filter_init_docstring():
    import itk
    from itk.support import template_class

    filter_class = itk.ITKWatersheds.WatershedImageFilter
    watershed_image_filter.process_object = filter_class
    is_template = isinstance(filter_class, template_class.itkTemplate)
    if is_template:
        filter_object = filter_class.values()[0]
    else:
        filter_object = filter_class

    watershed_image_filter.__doc__ = filter_object.__doc__



