ewoksndreg.intensities.simpleitk_backend.sitkOptimizerIntesityMapping#
- class ewoksndreg.intensities.simpleitk_backend.sitkOptimizerIntesityMapping(transfo_type, metric=SitkMetricType.MeanSquares, optimizer=SitkOptimizerType.LBFGSB, order=1, mask=None, pyramid_levels=1, mesh_size=None, sampling=None, sampling_percentage=0.5, **kw)[source]#
Bases:
IntensityMapping
- Parameters:
transfo_type (
TransformationType
)metric (
SitkMetricType
)optimizer (
SitkOptimizerType
)order (
int
)mask (
Optional
[ndarray
])pyramid_levels (
int
)mesh_size (
Optional
[tuple
])sampling (
Optional
[Literal
['random'
,'regular'
]])sampling_percentage (
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
])
- 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 = ['translation', 'rigid', 'similarity', 'affine', 'bspline', 'displacement_field']#
- calculate(from_image, to_image)[source]#
- Parameters:
from_image (
ndarray
)to_image (
ndarray
)
- 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
]]
- property type: TransformationType#