Skip to content

Commit

Permalink
t2 random
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidtronix committed Mar 4, 2025
1 parent 2fdb3a3 commit 4dd4bfd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ml4h/tensormap/ukb/mri_brain.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,16 @@ def random_mni_slice_tensor(tm, hd5, dependents={}):
dependent_map=axial_index_map,
)

t1_mni_random_slice_32_160 = TensorMap(
't1_mni_random_slice',
Interpretation.CONTINUOUS,
shape=(192, 192, 1),
path_prefix='ukb_brain_mri/T1_brain_to_MNI/',
tensor_from_file=_random_slice_bounded(32, 160),
normalization=ZeroMeanStd1(),
dependent_map=axial_index_map,
)

t1_random_slice = TensorMap(
't1_random_slice',
Interpretation.CONTINUOUS,
Expand Down Expand Up @@ -507,6 +517,16 @@ def random_mni_slice_tensor(tm, hd5, dependents={}):
dependent_map=axial_index_map,
)

t2_flair_random_slice_32_192 = TensorMap(
't2_flair_random_slice',
Interpretation.CONTINUOUS,
shape=(192, 256, 1),
path_prefix='ukb_brain_mri/T2_FLAIR_orig_defaced/',
tensor_from_file=_random_slice_bounded(32, 192),
normalization=ZeroMeanStd1(),
dependent_map=axial_index_map,
)

t2_flair_random_slice_127 = TensorMap(
't2_flair_random_slice',
Interpretation.CONTINUOUS,
Expand Down

0 comments on commit 4dd4bfd

Please sign in to comment.