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

from sys import version_info as _swig_python_version_info
# Import the low-level C/C++ module
if __package__ or "." in __name__:
    from . import _itkImageRegionPython
else:
    import _itkImageRegionPython

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

_swig_new_instance_method = _itkImageRegionPython.SWIG_PyInstanceMethod_New
_swig_new_static_method = _itkImageRegionPython.SWIG_PyStaticMethod_New

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__)


import itkIndexPython
import itkSizePython
import pyBasePython
import itkOffsetPython
import ITKCommonBasePython
class vectoritkImageRegion2(object):
    r"""Proxy of C++ std::vector< itkImageRegion2 > class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    iterator = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_iterator)
    def __iter__(self):
        return self.iterator()
    __nonzero__ = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2___nonzero__)
    __bool__ = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2___bool__)
    __len__ = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2___len__)
    __getslice__ = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2___getslice__)
    __setslice__ = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2___setslice__)
    __delslice__ = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2___delslice__)
    __delitem__ = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2___delitem__)
    __getitem__ = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2___getitem__)
    __setitem__ = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2___setitem__)
    pop = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_pop)
    append = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_append)
    empty = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_empty)
    size = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_size)
    swap = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_swap)
    begin = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_begin)
    end = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_end)
    rbegin = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_rbegin)
    rend = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_rend)
    clear = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_clear)
    get_allocator = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_get_allocator)
    pop_back = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_pop_back)
    erase = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_erase)

    def __init__(self, *args):
        r"""
        __init__(vectoritkImageRegion2 self) -> vectoritkImageRegion2
        __init__(vectoritkImageRegion2 self, vectoritkImageRegion2 other) -> vectoritkImageRegion2
        __init__(vectoritkImageRegion2 self, std::vector< itkImageRegion2 >::size_type size) -> vectoritkImageRegion2
        __init__(vectoritkImageRegion2 self, std::vector< itkImageRegion2 >::size_type size, itkImageRegion2 value) -> vectoritkImageRegion2
        """
        _itkImageRegionPython.vectoritkImageRegion2_swiginit(self, _itkImageRegionPython.new_vectoritkImageRegion2(*args))
    push_back = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_push_back)
    front = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_front)
    back = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_back)
    assign = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_assign)
    resize = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_resize)
    insert = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_insert)
    reserve = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_reserve)
    capacity = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion2_capacity)
    __swig_destroy__ = _itkImageRegionPython.delete_vectoritkImageRegion2

# Register vectoritkImageRegion2 in _itkImageRegionPython:
_itkImageRegionPython.vectoritkImageRegion2_swigregister(vectoritkImageRegion2)
class vectoritkImageRegion3(object):
    r"""Proxy of C++ std::vector< itkImageRegion3 > class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    iterator = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_iterator)
    def __iter__(self):
        return self.iterator()
    __nonzero__ = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3___nonzero__)
    __bool__ = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3___bool__)
    __len__ = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3___len__)
    __getslice__ = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3___getslice__)
    __setslice__ = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3___setslice__)
    __delslice__ = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3___delslice__)
    __delitem__ = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3___delitem__)
    __getitem__ = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3___getitem__)
    __setitem__ = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3___setitem__)
    pop = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_pop)
    append = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_append)
    empty = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_empty)
    size = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_size)
    swap = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_swap)
    begin = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_begin)
    end = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_end)
    rbegin = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_rbegin)
    rend = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_rend)
    clear = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_clear)
    get_allocator = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_get_allocator)
    pop_back = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_pop_back)
    erase = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_erase)

    def __init__(self, *args):
        r"""
        __init__(vectoritkImageRegion3 self) -> vectoritkImageRegion3
        __init__(vectoritkImageRegion3 self, vectoritkImageRegion3 other) -> vectoritkImageRegion3
        __init__(vectoritkImageRegion3 self, std::vector< itkImageRegion3 >::size_type size) -> vectoritkImageRegion3
        __init__(vectoritkImageRegion3 self, std::vector< itkImageRegion3 >::size_type size, itkImageRegion3 value) -> vectoritkImageRegion3
        """
        _itkImageRegionPython.vectoritkImageRegion3_swiginit(self, _itkImageRegionPython.new_vectoritkImageRegion3(*args))
    push_back = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_push_back)
    front = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_front)
    back = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_back)
    assign = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_assign)
    resize = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_resize)
    insert = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_insert)
    reserve = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_reserve)
    capacity = _swig_new_instance_method(_itkImageRegionPython.vectoritkImageRegion3_capacity)
    __swig_destroy__ = _itkImageRegionPython.delete_vectoritkImageRegion3

# Register vectoritkImageRegion3 in _itkImageRegionPython:
_itkImageRegionPython.vectoritkImageRegion3_swigregister(vectoritkImageRegion3)
class itkImageRegion2(ITKCommonBasePython.itkRegion):
    r"""Proxy of C++ itkImageRegion2 class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    GetImageDimension = _swig_new_static_method(_itkImageRegionPython.itkImageRegion2_GetImageDimension)
    __swig_destroy__ = _itkImageRegionPython.delete_itkImageRegion2

    def __init__(self, *args):
        r"""
        __init__(itkImageRegion2 self) -> itkImageRegion2
        __init__(itkImageRegion2 self, itkImageRegion2 region) -> itkImageRegion2
        __init__(itkImageRegion2 self, itkIndex2 index, itkSize2 size) -> itkImageRegion2
        __init__(itkImageRegion2 self, itkSize2 size) -> itkImageRegion2
        """
        _itkImageRegionPython.itkImageRegion2_swiginit(self, _itkImageRegionPython.new_itkImageRegion2(*args))
    GetModifiableIndex = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion2_GetModifiableIndex)
    GetModifiableSize = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion2_GetModifiableSize)
    SetSize = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion2_SetSize)
    GetSize = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion2_GetSize)
    SetIndex = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion2_SetIndex)
    GetIndex = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion2_GetIndex)
    GetUpperIndex = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion2_GetUpperIndex)
    SetUpperIndex = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion2_SetUpperIndex)
    ComputeOffsetTable = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion2_ComputeOffsetTable)
    __eq__ = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion2___eq__)
    __ne__ = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion2___ne__)
    IsInside = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion2_IsInside)
    GetNumberOfPixels = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion2_GetNumberOfPixels)
    PadByRadius = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion2_PadByRadius)
    ShrinkByRadius = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion2_ShrinkByRadius)
    Crop = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion2_Crop)
    Slice = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion2_Slice)
    __repr__ = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion2___repr__)

# Register itkImageRegion2 in _itkImageRegionPython:
_itkImageRegionPython.itkImageRegion2_swigregister(itkImageRegion2)
class itkImageRegion3(ITKCommonBasePython.itkRegion):
    r"""Proxy of C++ itkImageRegion3 class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    GetImageDimension = _swig_new_static_method(_itkImageRegionPython.itkImageRegion3_GetImageDimension)
    __swig_destroy__ = _itkImageRegionPython.delete_itkImageRegion3

    def __init__(self, *args):
        r"""
        __init__(itkImageRegion3 self) -> itkImageRegion3
        __init__(itkImageRegion3 self, itkImageRegion3 region) -> itkImageRegion3
        __init__(itkImageRegion3 self, itkIndex3 index, itkSize3 size) -> itkImageRegion3
        __init__(itkImageRegion3 self, itkSize3 size) -> itkImageRegion3
        """
        _itkImageRegionPython.itkImageRegion3_swiginit(self, _itkImageRegionPython.new_itkImageRegion3(*args))
    GetModifiableIndex = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion3_GetModifiableIndex)
    GetModifiableSize = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion3_GetModifiableSize)
    SetSize = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion3_SetSize)
    GetSize = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion3_GetSize)
    SetIndex = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion3_SetIndex)
    GetIndex = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion3_GetIndex)
    GetUpperIndex = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion3_GetUpperIndex)
    SetUpperIndex = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion3_SetUpperIndex)
    ComputeOffsetTable = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion3_ComputeOffsetTable)
    __eq__ = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion3___eq__)
    __ne__ = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion3___ne__)
    IsInside = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion3_IsInside)
    GetNumberOfPixels = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion3_GetNumberOfPixels)
    PadByRadius = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion3_PadByRadius)
    ShrinkByRadius = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion3_ShrinkByRadius)
    Crop = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion3_Crop)
    Slice = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion3_Slice)
    __repr__ = _swig_new_instance_method(_itkImageRegionPython.itkImageRegion3___repr__)

# Register itkImageRegion3 in _itkImageRegionPython:
_itkImageRegionPython.itkImageRegion3_swigregister(itkImageRegion3)

