sympldiff 1.0.0__py3-none-any.whl

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.
sympldiff/__init__.py ADDED
@@ -0,0 +1,62 @@
1
+ # -*- coding: utf-8 -*-
2
+ """SymplDiff: Universal Clinical Foundation Model for 3D Deformable Brain MRI Registration."""
3
+
4
+ __version__ = "1.0.0"
5
+ __author__ = "Alvaro Garcia"
6
+ __license__ = "MIT"
7
+
8
+ from .operators import (
9
+ SymplecticCurlDiffeo3D_NP,
10
+ eval_sobolev_stream_2d_np,
11
+ eval_sobolev_stream_2d_torch,
12
+ )
13
+ from .autograd import ReversibleSymplecticCurlFunction
14
+ from .layers import SymplecticDiffeo3D, create_normalized_grid_3d
15
+ from .boundary import boundary_envelope_np, boundary_envelope_torch
16
+ from .moser import MoserCompressibleSymplecticDiffeo3D_NP
17
+ from .metrics import (
18
+ compute_finite_difference_jacobian_det_3d,
19
+ compute_folding_percentage,
20
+ compute_jacobian_condition_number,
21
+ compute_sobolev_h2_norm,
22
+ )
23
+ from .models.symplnet import SymplNet3D
24
+ from .losses import (
25
+ LNCCLoss3D,
26
+ MultiScaleLNCCLoss3D,
27
+ MINDLoss3D,
28
+ InverseConsistencyLoss,
29
+ AnatomicalDiceLoss,
30
+ HamiltonianSobolevLoss,
31
+ CompositeFoundationLoss,
32
+ )
33
+ from .api import register, load_model, apply_deformation, warp_segmentation
34
+
35
+ __all__ = [
36
+ "__version__",
37
+ "register",
38
+ "load_model",
39
+ "apply_deformation",
40
+ "warp_segmentation",
41
+ "SymplNet3D",
42
+ "SymplecticDiffeo3D",
43
+ "ReversibleSymplecticCurlFunction",
44
+ "SymplecticCurlDiffeo3D_NP",
45
+ "MoserCompressibleSymplecticDiffeo3D_NP",
46
+ "create_normalized_grid_3d",
47
+ "boundary_envelope_np",
48
+ "boundary_envelope_torch",
49
+ "eval_sobolev_stream_2d_np",
50
+ "eval_sobolev_stream_2d_torch",
51
+ "compute_finite_difference_jacobian_det_3d",
52
+ "compute_folding_percentage",
53
+ "compute_jacobian_condition_number",
54
+ "compute_sobolev_h2_norm",
55
+ "LNCCLoss3D",
56
+ "MultiScaleLNCCLoss3D",
57
+ "MINDLoss3D",
58
+ "InverseConsistencyLoss",
59
+ "AnatomicalDiceLoss",
60
+ "HamiltonianSobolevLoss",
61
+ "CompositeFoundationLoss",
62
+ ]