antspymm 1.3.8__py3-none-any.whl → 1.3.9__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.
- antspymm/mm.py +17 -5
- {antspymm-1.3.8.dist-info → antspymm-1.3.9.dist-info}/METADATA +1 -1
- antspymm-1.3.9.dist-info/RECORD +7 -0
- antspymm-1.3.8.dist-info/RECORD +0 -7
- {antspymm-1.3.8.dist-info → antspymm-1.3.9.dist-info}/LICENSE +0 -0
- {antspymm-1.3.8.dist-info → antspymm-1.3.9.dist-info}/WHEEL +0 -0
- {antspymm-1.3.8.dist-info → antspymm-1.3.9.dist-info}/top_level.txt +0 -0
antspymm/mm.py
CHANGED
@@ -5046,8 +5046,18 @@ def neuromelanin( list_nm_images, t1, t1_head, t1lab, brain_stem_dilation=8,
|
|
5046
5046
|
rrthresh = (rravg + k * rrstd)
|
5047
5047
|
nmabovekthresh_mask = sn_mask * ants.threshold_image( simg, rrthresh, math.inf)
|
5048
5048
|
snvolabovethresh = vol_element * nmabovekthresh_mask.sum()
|
5049
|
-
snintmeanabovethresh = ( simg * nmabovekthresh_mask ).mean()
|
5050
|
-
snintsumabovethresh = ( simg * nmabovekthresh_mask ).sum()
|
5049
|
+
snintmeanabovethresh = float( ( simg * nmabovekthresh_mask ).mean() )
|
5050
|
+
snintsumabovethresh = float( ( simg * nmabovekthresh_mask ).sum() )
|
5051
|
+
|
5052
|
+
k = 3.0
|
5053
|
+
rrthresh = (rravg + k * rrstd)
|
5054
|
+
nmabovekthresh_mask3 = sn_mask * ants.threshold_image( simg, rrthresh, math.inf)
|
5055
|
+
snvolabovethresh3 = vol_element * nmabovekthresh_mask3.sum()
|
5056
|
+
|
5057
|
+
k = 4.0
|
5058
|
+
rrthresh = (rravg + k * rrstd)
|
5059
|
+
nmabovekthresh_mask4 = sn_mask * ants.threshold_image( simg, rrthresh, math.inf)
|
5060
|
+
snvolabovethresh4 = vol_element * nmabovekthresh_mask4.sum()
|
5051
5061
|
|
5052
5062
|
if verbose:
|
5053
5063
|
print( "nm vol @2std above rrmean: " + str( snvolabovethresh ) )
|
@@ -5069,9 +5079,11 @@ def neuromelanin( list_nm_images, t1, t1_head, t1lab, brain_stem_dilation=8,
|
|
5069
5079
|
'NM_avg_substantianigra' : snavg,
|
5070
5080
|
'NM_std_substantianigra' : snstd,
|
5071
5081
|
'NM_volume_substantianigra' : snvol,
|
5072
|
-
'
|
5073
|
-
'
|
5074
|
-
'
|
5082
|
+
'NM_volume_substantianigra_2std' : snvolabovethresh,
|
5083
|
+
'NM_intmean_substantianigra_2std' : snintmeanabovethresh,
|
5084
|
+
'NM_intsum_substantianigra_2std' : snintsumabovethresh,
|
5085
|
+
'NM_volume_substantianigra_3std' : snvolabovethresh3,
|
5086
|
+
'NM_volume_substantianigra_4std' : snvolabovethresh4,
|
5075
5087
|
'NM_avg_refregion' : rravg,
|
5076
5088
|
'NM_std_refregion' : rrstd,
|
5077
5089
|
'NM_min' : nm_avg_cropped.min(),
|
@@ -0,0 +1,7 @@
|
|
1
|
+
antspymm/__init__.py,sha256=1fHqufHndrkJwz473av8qOf5-1xm5r-aKHuMAETGIiE,4462
|
2
|
+
antspymm/mm.py,sha256=m4l1VoltZnGqiKzLg1kOGRwx3INA87DkPZHJ4sU7cxE,481240
|
3
|
+
antspymm-1.3.9.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
4
|
+
antspymm-1.3.9.dist-info/METADATA,sha256=Ceg-uz1GUm1QPikt40iS9MkbF_7xJVgr4s-_1svpyr8,14866
|
5
|
+
antspymm-1.3.9.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
6
|
+
antspymm-1.3.9.dist-info/top_level.txt,sha256=iyD1sRhCKzfwKRJLq5ZUeV9xsv1cGQl8Ejp6QwXM1Zg,9
|
7
|
+
antspymm-1.3.9.dist-info/RECORD,,
|
antspymm-1.3.8.dist-info/RECORD
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
antspymm/__init__.py,sha256=1fHqufHndrkJwz473av8qOf5-1xm5r-aKHuMAETGIiE,4462
|
2
|
-
antspymm/mm.py,sha256=72293DXAlbeKXj75j5d_SYeiH2uKK9-XnpZh6YLIpwY,480752
|
3
|
-
antspymm-1.3.8.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
4
|
-
antspymm-1.3.8.dist-info/METADATA,sha256=P1Q9RDLvhqAQalZfVewHpbbvTPzsYBo91cTpBtGrOSw,14866
|
5
|
-
antspymm-1.3.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
6
|
-
antspymm-1.3.8.dist-info/top_level.txt,sha256=iyD1sRhCKzfwKRJLq5ZUeV9xsv1cGQl8Ejp6QwXM1Zg,9
|
7
|
-
antspymm-1.3.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|