ewoksndreg.intensities.kornia_backend.KorniaOptimizationIntensityMapping#
- class ewoksndreg.intensities.kornia_backend.KorniaOptimizationIntensityMapping(transfo_type, metric='MeanSquaredError', optimizer='RMSprop', pyramid_levels=3, **kw)[source]#
Bases:
IntensityMapping- Parameters:
transfo_type (
TransformationType)metric (
KorniaMetricType)optimizer (
KorniaOptimizerType)pyramid_levels (
int)
- 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:
- SUPPORTED_TRANSFORMATIONS: List[str] = ['translation', 'similarity', 'projective']#
- calculate(from_image, to_image)[source]#
- Parameters:
from_image (
ndarray)to_image (
ndarray)
- 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 transformation_type: TransformationType#