mrid-python 0.1.7__tar.gz → 0.1.8__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.
Files changed (44) hide show
  1. {mrid_python-0.1.7 → mrid_python-0.1.8}/PKG-INFO +1 -1
  2. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/preprocessing/hd_bet.py +2 -2
  3. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/preprocessing/simple_elastix.py +2 -2
  4. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid_python.egg-info/PKG-INFO +1 -1
  5. {mrid_python-0.1.7 → mrid_python-0.1.8}/pyproject.toml +1 -1
  6. {mrid_python-0.1.7 → mrid_python-0.1.8}/README.md +0 -0
  7. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/__init__.py +0 -0
  8. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/atlas/MNI152/__init__.py +0 -0
  9. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/atlas/SRI24/__init__.py +0 -0
  10. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/atlas/__init__.py +0 -0
  11. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/inference/__init__.py +0 -0
  12. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/loading/__init__.py +0 -0
  13. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/loading/convert.py +0 -0
  14. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/preprocessing/CTseg.py +0 -0
  15. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/preprocessing/__init__.py +0 -0
  16. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/preprocessing/bias_field_correction.py +0 -0
  17. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/preprocessing/cropping.py +0 -0
  18. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/preprocessing/haca3.py +0 -0
  19. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/preprocessing/mask.py +0 -0
  20. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/preprocessing/spatial.py +0 -0
  21. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/preprocessing/synthstrip.py +0 -0
  22. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/study.py +0 -0
  23. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/training/__init__.py +0 -0
  24. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/training/cropping.py +0 -0
  25. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/training/padding.py +0 -0
  26. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/training/slicer.py +0 -0
  27. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/training/transforms.py +0 -0
  28. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/utils/__init__.py +0 -0
  29. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/utils/dcm2niix.py +0 -0
  30. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/utils/dicom_uid_fixer.py +0 -0
  31. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/utils/plotting.py +0 -0
  32. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/utils/python_utils.py +0 -0
  33. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/utils/sitk_utils.py +0 -0
  34. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/utils/stl_utils.py +0 -0
  35. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid/utils/torch_utils.py +0 -0
  36. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid_python.egg-info/SOURCES.txt +0 -0
  37. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid_python.egg-info/dependency_links.txt +0 -0
  38. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid_python.egg-info/requires.txt +0 -0
  39. {mrid_python-0.1.7 → mrid_python-0.1.8}/mrid_python.egg-info/top_level.txt +0 -0
  40. {mrid_python-0.1.7 → mrid_python-0.1.8}/setup.cfg +0 -0
  41. {mrid_python-0.1.7 → mrid_python-0.1.8}/tests/test_loading.py +0 -0
  42. {mrid_python-0.1.7 → mrid_python-0.1.8}/tests/test_preprocessing.py +0 -0
  43. {mrid_python-0.1.7 → mrid_python-0.1.8}/tests/test_study.py +0 -0
  44. {mrid_python-0.1.7 → mrid_python-0.1.8}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mrid-python
3
- Version: 0.1.7
3
+ Version: 0.1.8
4
4
  Summary: Tools for working with 3D medical images and segmentations - registration, brain skull-stripping, etc.
5
5
  Author-email: Ivan Nikishev <nkshv2@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/inikishev/mrid
@@ -8,8 +8,8 @@ import SimpleITK as sitk
8
8
 
9
9
  from ..loading.convert import ImageLike, tositk
10
10
  from ..utils.torch_utils import CUDA_IF_AVAILABLE
11
+ from .mask import apply_mask, expand_binary_mask
11
12
  from .simple_elastix import register, register_D
12
- from .mask import expand_binary_mask, apply_mask
13
13
 
14
14
  # hd_bet -h
15
15
 
@@ -130,7 +130,7 @@ def predict_brain_mask(
130
130
  else:
131
131
  brain_mask = brain_mask_mni
132
132
 
133
- return brain_mask
133
+ return sitk.Cast(brain_mask, sitk.sitkUInt8)
134
134
 
135
135
  def skullstrip(
136
136
  input: ImageLike,
@@ -1,11 +1,11 @@
1
+ import os
1
2
  from collections.abc import Mapping, Sequence
2
3
  from typing import TYPE_CHECKING, Any
3
4
 
4
- import os
5
5
  import numpy as np
6
6
  import SimpleITK as sitk
7
7
 
8
- from ..loading.convert import tositk, ImageLike
8
+ from ..loading.convert import ImageLike, tositk
9
9
 
10
10
 
11
11
  def _default_pmap():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mrid-python
3
- Version: 0.1.7
3
+ Version: 0.1.8
4
4
  Summary: Tools for working with 3D medical images and segmentations - registration, brain skull-stripping, etc.
5
5
  Author-email: Ivan Nikishev <nkshv2@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/inikishev/mrid
@@ -13,7 +13,7 @@ build-backend = "setuptools.build_meta"
13
13
  name = "mrid-python"
14
14
  description = "Tools for working with 3D medical images and segmentations - registration, brain skull-stripping, etc."
15
15
 
16
- version = "0.1.7"
16
+ version = "0.1.8"
17
17
  dependencies = [
18
18
  "numpy",
19
19
  "SimpleITK",
File without changes
File without changes
File without changes