itkwasm-elastix-emscripten 0.4.0__tar.gz → 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/PKG-INFO +3 -2
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/itkwasm_elastix_emscripten/__init__.py +1 -0
- itkwasm_elastix_emscripten-1.0.0/itkwasm_elastix_emscripten/_version.py +1 -0
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/itkwasm_elastix_emscripten/elastix_async.py +9 -10
- itkwasm_elastix_emscripten-1.0.0/itkwasm_elastix_emscripten/js_package.py +8 -0
- itkwasm_elastix_emscripten-1.0.0/itkwasm_elastix_emscripten/transformix_async.py +78 -0
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/pixi.lock +59 -21
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/pyproject.toml +3 -1
- itkwasm_elastix_emscripten-1.0.0/tests/test_transformix_async.py +18 -0
- itkwasm_elastix_emscripten-0.4.0/itkwasm_elastix_emscripten/_version.py +0 -1
- itkwasm_elastix_emscripten-0.4.0/itkwasm_elastix_emscripten/js_package.py +0 -8
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/.gitattributes +0 -0
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/.gitignore +0 -0
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/README.md +0 -0
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/itkwasm_elastix_emscripten/default_parameter_map_async.py +0 -0
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/itkwasm_elastix_emscripten/read_parameter_files_async.py +0 -0
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/itkwasm_elastix_emscripten/write_parameter_files_async.py +0 -0
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/test/__init__.py +0 -0
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/test/fixtures.py +0 -0
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/test/test_itkwasm_elastix.py +0 -0
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/test/test_write_parameter_files_async.py +0 -0
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/tests/__init__.py +0 -0
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/tests/fixtures.py +0 -0
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/tests/test_default_parameter_map_async.py +0 -0
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/tests/test_elastix_async.py +0 -0
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/tests/test_read_parameter_files_async.py +0 -0
- {itkwasm_elastix_emscripten-0.4.0 → itkwasm_elastix_emscripten-1.0.0}/tests/test_write_parameter_files_async.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: itkwasm-elastix-emscripten
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.0
|
|
4
4
|
Dynamic: Summary
|
|
5
5
|
Project-URL: Home, https://github.com/InsightSoftwareConsortium/ITKElastix
|
|
6
6
|
Project-URL: Source, https://github.com/InsightSoftwareConsortium/ITKElastix
|
|
@@ -20,8 +20,9 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
24
|
Requires-Python: >=3.9
|
|
24
|
-
Requires-Dist: itkwasm>=1.0.
|
|
25
|
+
Requires-Dist: itkwasm>=1.0.b191
|
|
25
26
|
Provides-Extra: test
|
|
26
27
|
Requires-Dist: hatch<2,>=1.12.0; extra == 'test'
|
|
27
28
|
Requires-Dist: pyodide-py<0.27,>=0.26.2; extra == 'test'
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
from .default_parameter_map_async import default_parameter_map_async
|
|
6
6
|
from .elastix_async import elastix_async
|
|
7
7
|
from .read_parameter_files_async import read_parameter_files_async
|
|
8
|
+
from .transformix_async import transformix_async
|
|
8
9
|
from .write_parameter_files_async import write_parameter_files_async
|
|
9
10
|
|
|
10
11
|
from ._version import __version__
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.0.0"
|
|
@@ -14,25 +14,21 @@ from itkwasm.pyodide import (
|
|
|
14
14
|
from itkwasm import (
|
|
15
15
|
InterfaceTypes,
|
|
16
16
|
Image,
|
|
17
|
-
|
|
17
|
+
TransformList,
|
|
18
18
|
)
|
|
19
19
|
|
|
20
20
|
async def elastix_async(
|
|
21
21
|
parameter_object: Any,
|
|
22
|
-
transform: str,
|
|
23
22
|
fixed: Optional[Image] = None,
|
|
24
23
|
moving: Optional[Image] = None,
|
|
25
|
-
initial_transform: Optional[
|
|
24
|
+
initial_transform: Optional[TransformList] = None,
|
|
26
25
|
initial_transform_parameter_object: Optional[Any] = None,
|
|
27
|
-
) -> Tuple[Image, Any]:
|
|
26
|
+
) -> Tuple[Image, TransformList, Any]:
|
|
28
27
|
"""Rigid and non-rigid registration of images.
|
|
29
28
|
|
|
30
29
|
:param parameter_object: Elastix parameter object representation
|
|
31
30
|
:type parameter_object: Any
|
|
32
31
|
|
|
33
|
-
:param transform: Fixed-to-moving transform file
|
|
34
|
-
:type transform: str
|
|
35
|
-
|
|
36
32
|
:param fixed: Fixed image
|
|
37
33
|
:type fixed: Image
|
|
38
34
|
|
|
@@ -40,7 +36,7 @@ async def elastix_async(
|
|
|
40
36
|
:type moving: Image
|
|
41
37
|
|
|
42
38
|
:param initial_transform: Initial transform to apply before registration
|
|
43
|
-
:type initial_transform:
|
|
39
|
+
:type initial_transform: TransformList
|
|
44
40
|
|
|
45
41
|
:param initial_transform_parameter_object: Initial elastix transform parameter object to apply before registration. Only provide this or an initial transform.
|
|
46
42
|
:type initial_transform_parameter_object: Any
|
|
@@ -48,6 +44,9 @@ async def elastix_async(
|
|
|
48
44
|
:return: Resampled moving image
|
|
49
45
|
:rtype: Image
|
|
50
46
|
|
|
47
|
+
:return: Fixed-to-moving transform file
|
|
48
|
+
:rtype: TransformList
|
|
49
|
+
|
|
51
50
|
:return: Elastix optimized transform parameter object representation
|
|
52
51
|
:rtype: Any
|
|
53
52
|
"""
|
|
@@ -60,11 +59,11 @@ async def elastix_async(
|
|
|
60
59
|
if moving is not None:
|
|
61
60
|
kwargs["moving"] = to_js(moving)
|
|
62
61
|
if initial_transform is not None:
|
|
63
|
-
kwargs["initialTransform"] = to_js(
|
|
62
|
+
kwargs["initialTransform"] = to_js(initial_transform)
|
|
64
63
|
if initial_transform_parameter_object is not None:
|
|
65
64
|
kwargs["initialTransformParameterObject"] = to_js(initial_transform_parameter_object)
|
|
66
65
|
|
|
67
|
-
outputs = await js_module.elastix(to_js(parameter_object),
|
|
66
|
+
outputs = await js_module.elastix(to_js(parameter_object), webWorker=web_worker, noCopy=True, **kwargs)
|
|
68
67
|
|
|
69
68
|
output_web_worker = None
|
|
70
69
|
output_list = []
|