File Exchange

image thumbnail

InSPIRE: simple utility to read raw image into Matlab workspace

version 1.0 (1.33 KB) by

It reads a 3D raw image and show the mid cross-section of the raw volume image

1 Download


View License

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.

Comments and Ratings (3)

Goran Lehar

Rex Cheung

Hi Sheng,
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 %(
%it is the obscure fact that X %programmers
%like to store the big part of %their
%number first in the memory.

Sheng Yue

should "zplane=round(Xdim/2);"
to be "zplane=round(Zdim/2);"?

And you may need to include Endianness options to the code.

MATLAB Release
MATLAB 7.14 (R2012a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today