Code covered by the BSD License  

Highlights from
Mia 2.4

image thumbnail

Mia 2.4

by

 

02 Apr 2004 (Updated )

Medical Image Analysis GUI.

loadvaxnorm(filename)
function normVOL = loadvaxnorm(filename)
% function normVOL = loadvaxnorm(filename)
%
num_of_slice = 15;
num_of_projection = 512;
num_of_member = 96;
num_of_crystal = 4096;
%
% Checking the file input
%
filelis= dir(filename);
num_of_file = size(filelis,1);
if num_of_file == 0
    disp('No data file was found!');
    dataVOL=[];
    return;
end
%
% reading the norm values
%
vaxpid = fopen(filename,'r','vaxd');
hvax = fread(vaxpid,4096,'char');%skip the header
normVOL = zeros(num_of_projection,num_of_member,num_of_slice);
for i=1:num_of_slice
    normVOL(:,:,i)=fread(vaxpid,[num_of_member num_of_projection],'float')';
end
    

Contact us