This simple utility program reads a 3D image in raw format into Matlab workspace for your image processing. The user needs to have the formation of the voxel depth and the image x, y and z dimensions for this program to run. The code could be easily modified to show the sagittal and/or coronal planes for additional verification and visualization.
Thanks for your comments. You are right.
We just uploaded another readRaw.m has endian-ness, and the zdim/2 fixed:
fid = fopen(filename,'rb',endian); %'b' = big-endian %for X-machines, Little End in
%(little endian) for windows %(http://support.microsoft.com/kb/102025)
%it is the obscure fact that X %programmers
%like to store the big part of %their
%number first in the memory.
to be "zplane=round(Zdim/2);"?
And you may need to include Endianness options to the code.