ewoksndreg.transformation.scipy_backend.ScipyHomography#

class ewoksndreg.transformation.scipy_backend.ScipyHomography(*args, warp_options=None, **kw)[source]#

Bases: Homography

Parameters:

warp_options (Optional[Dict])

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

property active: 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, …)) = N

  • offset (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_parameters()#
Return type:

ndarray

as_type(cls)#
Parameters:

cls (Type[Transformation])

Return type:

Transformation

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#