ewoksndreg.transformation.simpleitk_backend.SimpleITKTransformation#
- class ewoksndreg.transformation.simpleitk_backend.SimpleITKTransformation(transfo_type=None, warp_options=None, transformation=None, passive=None, displacement_field=None, bspline=None)[source]#
Bases:
Transformation
- Parameters:
transfo_type (
Optional
[TransformationType
])warp_options (
Optional
[Dict
])transformation (
Optional
[Transform
])passive (
Optional
[ndarray
])displacement_field (
Optional
[ndarray
])bspline (
Optional
[ndarray
])
- class RegistryId(name, backend)#
Bases:
NamedTuple
-
backend:
str
# Alias for field number 1
- count(value, /)#
Return number of occurrences of value.
- classmethod factory(value)#
- Parameters:
value (
Union
[RegistryId
,str
,Tuple
])
- index(value, start=0, stop=9223372036854775807, /)#
Return first index of value.
Raises ValueError if the value is not present.
-
name:
str
# Alias for field number 0
-
backend:
- apply_coordinates(coord)[source]#
- Parameters:
coord (
Sequence
[ndarray
]) – shape (N, M)- Return type:
ndarray
- Returns:
shape (N, M)
- apply_data(data, offset=None, shape=None, cval=nan, interpolation_order=1)[source]#
- Parameters:
data (
ndarray
) – shape (N1, N2, …, M1, M2, …) with len((N1, N2, …)) = Noffset (
Optional
[ndarray
]) – shape (N,)shape (
Optional
[ndarray
]) – shape (N,) = [N1’, N2’, …]cval – missing value
interpolation_order (
int
) – order of interpolation: 0 is nearest neighbor, 1 is bilinear,…
- Return type:
ndarray
- Returns:
shape (N1’, N2’, …, M1, M2, …)
- as_type(cls)#
- Parameters:
cls (
Type
[Transformation
])- Return type:
- property displacement_field: ndarray#
- get_identity(transfo_type, dim=2)[source]#
- Parameters:
transfo_type (
TransformationType
)dim (
int
)
- classmethod get_subclass(registry_id)#
- Parameters:
registry_id (
RegistryId
)- Return type:
Type
[Registered
]
- classmethod get_subclass_id()#
- Return type:
Optional
[RegistryId
]
- classmethod get_subclass_ids()#
- Return type:
List
[RegistryId
]
- classmethod get_subclass_items()#
- Return type:
List
[RegistryId
]
- classmethod get_subclasses()#
- Return type:
List
[Type
[Registered
]]
- is_homography()#
- property passive: ndarray#
- property type: TransformationType#