mrid-python 0.1.7__py3-none-any.whl → 0.1.8__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.
- mrid/preprocessing/hd_bet.py +2 -2
- mrid/preprocessing/simple_elastix.py +2 -2
- {mrid_python-0.1.7.dist-info → mrid_python-0.1.8.dist-info}/METADATA +1 -1
- {mrid_python-0.1.7.dist-info → mrid_python-0.1.8.dist-info}/RECORD +6 -6
- {mrid_python-0.1.7.dist-info → mrid_python-0.1.8.dist-info}/WHEEL +0 -0
- {mrid_python-0.1.7.dist-info → mrid_python-0.1.8.dist-info}/top_level.txt +0 -0
mrid/preprocessing/hd_bet.py
CHANGED
|
@@ -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
|
|
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.
|
|
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
|
|
@@ -11,9 +11,9 @@ mrid/preprocessing/__init__.py,sha256=rU4kH6bwnJ_v0fuO-e0ZvMSVqj8qQSlDgWbUufcpkh
|
|
|
11
11
|
mrid/preprocessing/bias_field_correction.py,sha256=K2w75JkVIV_Gj7W-9gpHUwz2teEvgSRt5wX-CqQeRik,1143
|
|
12
12
|
mrid/preprocessing/cropping.py,sha256=cSVYqwN5hTVKc8d-daOQsISiUWIODXXQg2HkCFj1xcM,2449
|
|
13
13
|
mrid/preprocessing/haca3.py,sha256=kV1B7P-pOhPWsXmoXApKHFqZFqSIfzonC7mi4coijag,13124
|
|
14
|
-
mrid/preprocessing/hd_bet.py,sha256=
|
|
14
|
+
mrid/preprocessing/hd_bet.py,sha256=vJTv23Mooz90BnFzdi2mSBCdHApUYfyaTlby7U-xAt0,11296
|
|
15
15
|
mrid/preprocessing/mask.py,sha256=-x-9-CMbUR7Jx8p7YVtBb3r-OnGut9YefmEVI04jyDc,1350
|
|
16
|
-
mrid/preprocessing/simple_elastix.py,sha256=
|
|
16
|
+
mrid/preprocessing/simple_elastix.py,sha256=AZ5QxNEy7Yu3GoXYpyNbDsyOddgiwDJvqHZggSU1iuM,7975
|
|
17
17
|
mrid/preprocessing/spatial.py,sha256=HFB-LVhuc63PYJIdLOlSV5j_ydVT0-wWTxtCMM-BpOw,2132
|
|
18
18
|
mrid/preprocessing/synthstrip.py,sha256=TaRFJn4vPmZ7V-SmKdaOTR3yZakoA3OfhwdjiBQg2Xs,10501
|
|
19
19
|
mrid/training/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -33,7 +33,7 @@ tests/test_loading.py,sha256=CciTvnqQ7hY-Vk2GgH2SWSu8nyS8lLeBqHu3XzClBLY,2141
|
|
|
33
33
|
tests/test_preprocessing.py,sha256=nT_WSG-raQt9Xjt-I_vLFzps6Px-fSy8F_3PB66byeE,1318
|
|
34
34
|
tests/test_study.py,sha256=mKm9mB1TS8nUCtDZhery7nDwxbZ5x6ZvpB2U5l0l_MM,3987
|
|
35
35
|
tests/test_utils.py,sha256=Q4uf5dog673RDofOC6RPLYnxVN5NAIVRTiyTbf9Az74,359
|
|
36
|
-
mrid_python-0.1.
|
|
37
|
-
mrid_python-0.1.
|
|
38
|
-
mrid_python-0.1.
|
|
39
|
-
mrid_python-0.1.
|
|
36
|
+
mrid_python-0.1.8.dist-info/METADATA,sha256=d1kU1pD03x5NgkGKkLZgX6aUcj8cJTGFNMJopg-8wsY,3795
|
|
37
|
+
mrid_python-0.1.8.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
38
|
+
mrid_python-0.1.8.dist-info/top_level.txt,sha256=lBv75ms7UoIM4elDVX3CbKiSlh-X0vABtaUwj4TGx4o,11
|
|
39
|
+
mrid_python-0.1.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|