ewoksndreg.transformation.base.Transformation#
- class ewoksndreg.transformation.base.Transformation(transfo_type)[source]#
Bases:
Registered- Parameters:
transfo_type (
TransformationType)
- 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[str,str]])
- 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:
- property active_matrix: ndarray#
- 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)[source]#
- Parameters:
cls (
Type[Transformation])- Return type:
- classmethod get_subclass(registry_id)#
- Parameters:
registry_id (
Union[RegistryId,str,Tuple[str,str]])- 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[Tuple[str,Type[Registered]]]
- classmethod get_subclasses()#
- Return type:
List[Type[Registered]]
- property passive_matrix: ndarray#
- property transformation_type: TransformationType#