Thanks for this Pedro.
We'll be doing another set of updates very soon, and this fix (changing a "+"
to a "-" - in two places) will be included.
All the best,
-John
On Friday 16 December 2005 21:39, Pedro A. Valdes Hdez wrote:
> Dear John:
>
>
>
> I've implemented my own function to open and embed in MR coordinate system
> dicom images in analyze format. I wasted my time once I realized you have a
> very complete function to do this (spm_DICOM), I have to congratulate you
> for a very good and complete function. However I compared the
> transformation matrices and I've found a little difference...
>
>
>
> analyze_to_dicom = [diag([1 -1 1]) [0 (dim(2)+1) 0]'; 0 0 0 1]*[eye(4,3)
> [-1 -1 -1 1]
>
>
>
> This should convert voxels from analyze to dicom:
>
> I understood that dicom voxels y row direction goes from dim(2)-1 to 0 and
> analyze goes from 1 to dim(2) so I've constructed my matrix in a way that
> it is equivalent to the following:
>
>
>
> analyze_to_dicom = [diag([1 -1 1]) [0 (dim(2)-1) 0]'; 0 0 0 1]*[eye(4,3)
> [-1 -1 -1 1]
>
>
>
> this should transform vectors as follows:
>
>
>
> analyze_to_dicom*[1 1 1 1]' = [0 dim(2)-1 0 1]',
>
>
>
> analyze_to_dicom* [1 dim(2) 1 1]'' = [0 0 0 1]',
>
>
>
> Please, tell where I'm wrong...
>
> Thank you
>
>
>
> __________________________
>
>
>
> Pedro Antonio Valdés Hernández
>
> Neurophysics Department, Cuban Neuroscience Center.
>
> Ave 25, Esq. 158, # 15202, Cubanacán, Playa, Havana City, Cuba.
>
> Phone Number: (537) 208 44 60
>
> __________________________
|