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 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
- 'NM_volume_substantianigra_above_k_thresh' : snvolabovethresh,
5073
- 'NM_intmean_substantianigra_above_k_thresh' : snintmeanabovethresh,
5074
- 'NM_intsum_substantianigra_above_k_thresh' : snintsumabovethresh,
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(),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: antspymm
3
- Version: 1.3.8
3
+ Version: 1.3.9
4
4
  Summary: multi-channel/time-series medical image processing with antspyx
5
5
  Author-email: "Avants, Gosselin, Tustison, Reardon" <stnava@gmail.com>
6
6
  License: Apache 2.0
@@ -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,,
@@ -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,,