ewoksndreg.transformation.homography.Homography#
- class ewoksndreg.transformation.homography.Homography(passive, transfo_type=None)[source]#
Bases:
Transformation
- Parameters:
passive (
ndarray
)transfo_type (
Optional
[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
])
- 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: ndarray#
- apply_coordinates(coord)#
- 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)#
- 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:
- 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#