Go to the source code of this file.
| align_dyn_1_0_2 | ( | file1, | ||
| file2, | ||||
| method, | ||||
| int_method | ||||
| ) |
[A1,A2] = align_dyn_1_0_2(file1,file2,method,int_method)
Program for coregistering 2 dynamic PET images. SPM2 coregistration is used
with with normalized mutual information as cost function. Bicubic interpolation
method is used in re-slice.
parameters:
file1 dynamic Analyze7.5 image
file2 dynamic Analyze7.5 image, which is aligned to file1
method name of methods {'sum2avg','sum2sum'}, default is 'sum2avg'
'avg2sum' is as proposed by Jussi Hirvonen:
1. sum images sum1 and sum2 of dynamic images are calculated
2. sum images are coregistered sum2 -> sum1 = rsum2
3. average image is calculated from coregistered (rsum2 + sum1)/2 = avg
4. sum images sum1 and sum2 are of both coregistered to avg
5. coregistration parameters are used for all frames of PET images
'sum2sum' is following:
1. sum images sum1 and sum2 of dynamic images are calculated
2. sum2 is coregistered to sum1
3. coregistration parameters are used for all frames of second PET file
int_method interpolation method. must be one of following:
0: nearest neighbour
1: trilinear
7: unwindowed sinc
returns:
A1 4x4 transformation matrix for coregistering file1
A2 4x4 transformation matrix for coregistering file2
coregistered images with 'r' prefix
version 0.0.1, 2005-06-21, Harri Merisaari, test edition for Jussi Hirvonen
version 1.0.0,2005-07-05,Harri Merisaari,release version, two methods for coregistration,
version 1.0.1,2005-07-05,Harri Merisaari,support for files with different frame sizes, in method 'sum2avg'
version 1.0.2,beta,2005-07-05,Harri Merisaari, DEVELOPMENT VERSION
Copyright (c) 2005 by Turku PET Centre
| file1 | ||
| file2 | ||
| method | ||
| int_method |
A2
Here is the call graph for this function:

1.5.2