Go to the source code of this file.
| ( | Struct, | |||
| method, | ||||
| sincparms | ||||
| ) |
function imgO=matlab_reslice_0_0_1(Struct,[method]);
Function to reslice an Analyze image using
affine 12-parameter transformation matrix.
Inputs:
Struct has the fields
hdrI - input file Analyze header
hdrO - output file Analyze header
A - 12 parm. affine transformation matrix
for application xyzO=A*xyzI. A is in
real world (mm) coordinates.
[imgI] - optional field. If Struct has this field,
the input data are taken from here. Otherwise,
the image given in hdrI.name is loaded.
[imgO] - optional field. If Struct has this field, the output
is non-empty, and no datafile is written to disk.
method - defines what interpolation method to use. If none
is given, 'linear' is assumed.
Output:
imgO - Output Analyze Img data. only non-empty if the field
'imgO' exists in Struct.
Warning: Output is written to hdr0.name without checking.
Checking should be done beforehand, e.g. using uiputfile.
hdr.origin information is assumed correct.
Note: A third input parameter - sincparms - is unused, but
needed for concistency whith ResliceWarp and ResliceAir
PW, NRU, 2001
RESLICEDESC interp3 (Matlab)
Updates:
Temporary file writing changed (did not work properly under linux). 161203TR
4D routines made windows compatible by using matlab fileroutines instead of unix. 161203TR
version 0.0.1,31-10-2006, Harri Merisaari, using subdivisions in order
to comsume less memory
| Struct | ||
| method | ||
| sincparms |
1.5.2