Dan and Brian,
Ages ago I wrote this little tool to display a volume as orthogonal MIP
projections. I wanted something that returns voxel co-ordinates instead
of Talairach co-ordinates.
http://www.jiscmail.ac.uk/cgi-bin/wa.exe?A2=ind05&L=SPM&P=R129731&I=-3
I wrote it as part of a larger program, so it is quite DIY (you need to
load the image data yourself, and if you want, a mask - I always used
the EPI template for that). The nice thing about it though is that it is
only a MIP viewer and nothing else, so you can easily see what happens
where.
Mind you, this is a MIP display (like the transparent brain in SPM), so
the slices do not change when you move the cross. If you want the slices
to change, you can easily change that in the `movecross' function.
Hope this helps
Alle Meije
Dan Krainak wrote:
> Brian,
>>
>> I'm developing an application in which I'm trying to incorporate
>> orthogonal views. Do any SPM/matlab programmers have insight as to
>> how a button press in one view is translated to the other two views.
>>
> You should look at spm_image.m and spm_orthviews.m for information on
> how SPM changes the other slices and accounts for user imposed
> manipulations on the views. Search for ButtonDownFcn to trace back what
> actually happens when a user clicks on the axes.
>>
>> e.g. If I select voxel (128, 124, 80) in the axial view, what
>> coordinates does that map to in the coronal and sagittal views. Also,
>> I'm working with dicom orientation (versus the SPM/nifti orientation).
>>
> Each voxel only has one set of coordinates in a given coordinate system,
> for example (128, 124, 80). The units matter, voxels or mm. The
> selected voxel is the same in all views, what changes in the different
> views is the slice and orientation that you are looking at. In the
> axial view you'd want slice 80, coronal = 124, and sagittal = 128,
> assuming you are in the same coordinate system as SPM and want the
> slices in the voxel coordinate system with the specified orientation.
> You can change the views in many ways without changing the voxel selected.
>
> Perhaps other programmers have additional suggestions and/or could
> correct me where I am mistaken.
>
> Good luck!
>
> -Dan
>
--
Brain Mapping Unit
Dept. of Psychiatry
University of Cambridge
Downing Site
Cambridge CB2 3EB
tel: (+44) (0)1223 764676
fax: (+44) (0)1223 336581
[log in to unmask]
___________________________________________________________
NEW Yahoo! Cars - sell your car and browse thousands of new and used cars online! http://uk.cars.yahoo.com/
|