Skip to content

Commit f91be6c

Browse files
committed
added native PET space
1 parent 66fe107 commit f91be6c

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

content/en/docs/tutorials/standard-mni.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Standard Centiloid Anlysis - MNI space
2+
title: Standard Centiloid Anlysis - MNI and Native PET Space
33
description: >
44
Centiloid processing with subsequent regional brain analysis in the MNI PET space
55
weight: 4
@@ -274,4 +274,38 @@ vois = amypet.extract_vois(
274274
print('The average value in the cingulate gyrus is avg = {}. The number of voxles (also partial) is nvox = {}.'.format(vois['CG']['avg'], vois['CG']['vox_no']))
275275
```
276276

277-
The average value in the cingulate gyrus is avg = 9066.670901759866. The number of voxels (also partial) is nvox = 26160.29958630912.
277+
The average value in the cingulate gyrus is avg = 9066.670901759866. The number of voxels (also partial) is nvox = 26160.29958630912.
278+
279+
280+
## Performing Analysis in native PET space
281+
282+
In the first instance raw (unmodified) PET image is used:
283+
284+
```python
285+
# output for native PET analysis
286+
onat = outpath/'native'
287+
288+
# > reference PET (explicitly identifying it from CL processing input)
289+
fpetin = out_cl['petc']['fim']
290+
291+
# > get PET array
292+
pet = nimpa.getnii(out_cl['petc']['fim'])
293+
294+
# > get the dicionary of native PET outpus
295+
natdct = amypet.atl2pet(hmr['fatlas_full'], out_cl, fpet=fpetin, outpath=onat)
296+
```
297+
298+
The above `natdct` dictionary contains the file paths and images for the grey and white matter probabilistic masks as well as the atlas in the native PET space.
299+
300+
301+
### Upsampled PET to higher resolution grid
302+
303+
Alternatively, the PET image can be upsampled to higher resolution grid without any extra modifications (apart from interpolation if chosen) in order to obtain higher sampling accuracy from the structural information from the MRI.
304+
305+
```python
306+
# > upscale and trim the original PET and use linear interpolation (if no interpolation is desired then use int_order=0)
307+
imupd = nimpa.imtrimup(fpetin, scale=2, int_order=1, store_img=True)
308+
309+
# > get the upscaled PET space atlas and probability GM/WM masks
310+
natupdct = amypet.atl2pet(hmr['fatlas_full'], out_cl, fpet=imupd['fim'], outpath=onat)
311+
```

0 commit comments

Comments
 (0)