Doxygen Source Code Documentation
GE_get_volsperrun.m File Reference
Go to the source code of this file.
Functions | |
disp (sprintf('Found%d image files in directory%s', nfiles, curdir)) flist | |
fseek (fid, 4936,'bof') | |
runnum (nimg) | |
fclose (fid) | |
fprintf ('There are%d functionals runs.\n', numrun)%for i | |
im_datetime (nimg) | |
im_actual_dt (nimg) | |
im_lastmod (nimg) | |
im_checksum (nimg) | |
im_scanactno (nimg) | |
Variables | |
function [volsperrun] | |
ser_idnum = str2num(ser_idstr) | |
Strip tailing directory | GE_data_root = inDir(1:max(findstr('/',inDir))-1) |
List directories and extract those corresponding to the desired series | d = dir(GE_data_root) |
dir_idx = find(cat(d.isdir)) | |
ndir = length(dir_idx) | |
dirmat = char(d.name) | |
good_idx = find((dirmat(:,3) == ser_idstr) & isspace(dirmat(:,4))) | |
ser_dirnames = char(d(good_idx).name) | |
byte_align = 0 | |
Open the first file and get the number of slices | firstfile = fullfile(GE_data_root, ser_dirnames(1,:), 'I.001') |
nslices = GE_readHeader(firstfile) im_hdr.slquant | |
nimg = 0 | |
for | idir |
subd = dir(curdir) | |
nfiles = length(good_idx) | |
Loop through and read the run number from the header of each file for | ifile |
fid = fopen(imageFile,'r','b') | |
end end Output the results to the | screen [B, I, J] = unique(runnum) |
imperrun = [I(1) diff(I)] | |
volsperrun = imperrun/nslices | |
numrun = length(B) |
Function Documentation
|
Referenced by surf_ave_radius(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Variable Documentation
|
|
|
Definition at line 22 of file GE_get_volsperrun.m. |
|
Definition at line 24 of file GE_get_volsperrun.m. |
|
Definition at line 48 of file GE_get_volsperrun.m. |
|
Definition at line 60 of file GE_get_volsperrun.m. |
|
Definition at line 38 of file GE_get_volsperrun.m. |
|
Initial value: GE_get_volsperrun(inDir) % % [ volsperrun ] = GE_get_volsperrun(inDir) % % A utility to find the number of volumes per run in an ADW scan. % inDir is the starting directory for the I.* files. % % Souheil J. Inati % Dartmouth College % July 2001 % souheil.inati@dartmouth.edu % % Get series ID number ser_idstr = inDir(end) Definition at line 1 of file GE_get_volsperrun.m. |
|
Definition at line 19 of file GE_get_volsperrun.m. |
|
Definition at line 49 of file GE_get_volsperrun.m. |
|
Initial value: 1:ndir curdir = fullfile(GE_data_root, ser_dirnames(idir,:)) Definition at line 44 of file GE_get_volsperrun.m. |
|
Initial value: Definition at line 57 of file GE_get_volsperrun.m. Referenced by SUMA_Extension(), and THD_init_alldir_datablocks(). |
|
Definition at line 71 of file GE_get_volsperrun.m. |
|
Definition at line 33 of file GE_get_volsperrun.m. Referenced by THD_get_many_timeseries(), and THD_getpathprogs(). |
|
Definition at line 50 of file GE_get_volsperrun.m. Referenced by find_fl_file_index(), main(), read_ge_files(), scan_ge_files(), THD_get_all_filenames(), and THD_get_wildcard_filenames(). |
|
Definition at line 59 of file GE_get_volsperrun.m. Referenced by write_image_data(). |
|
Definition at line 40 of file GE_get_volsperrun.m. Referenced by output_results(), RIC_CalcCoeffAB(), and RIC_CorrectDataset(). |
|
Definition at line 75 of file GE_get_volsperrun.m. |
|
Definition at line 69 of file GE_get_volsperrun.m. Referenced by __glutGetTransparentPixel(), __glutXGetLayerVisualInfo(), create_image_data(), Gif_Unoptimize(), main(), put_background_in_screen(), put_image_in_screen(), and unoptimize_image(). |
|
Definition at line 31 of file GE_get_volsperrun.m. |
|
Definition at line 16 of file GE_get_volsperrun.m. |
|
Definition at line 46 of file GE_get_volsperrun.m. |
|
Definition at line 73 of file GE_get_volsperrun.m. |