Changeset 80 for misclib/nifti3dto4d.m


Ignore:
Timestamp:
Feb 20, 2009, 3:06:07 PM (10 years ago)
Author:
tjniskan
Message:
  • Changed the historical "an2_" prefix to "aedes_" in all files. NOTE:

Any script or function relying to Aedes functions will be broken
because of this. Just do a search/replace from "an2_" to "aedes_" in
your files and all should be well...

  • Changed the name of an2_readtab.m to a more informative

aedes_readphasetable.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • misclib/nifti3dto4d.m

    r66 r80  
    3636if nargin==0 || isempty(infiles)
    3737  % Prompt files to read
    38   [fname,fpath,findex] = an2_juigetfiles({'*.nii','NIfTI files (*.nii)';...
     38  [fname,fpath,findex] = aedes_juigetfiles({'*.nii','NIfTI files (*.nii)';...
    3939        '*.*','All Files (*.*)'},'Select volumes',pwd);
    4040 
     
    6363
    6464% Read the first image and get header parameters
    65 tmp_data = an2_read_nifti(infiles{1});
     65tmp_data = aedes_read_nifti(infiles{1});
    6666TimeUnits = tmp_data.HDR.timeunits;
    6767xyzunits = tmp_data.HDR.xyzunits;
     
    108108
    109109if showWbar
    110   wbh=an2_wbar(1/length(infiles),...
     110  wbh=aedes_wbar(1/length(infiles),...
    111111        sprintf('Reading 3D NIfTI files...1/%d',length(infiles)));
    112112end
    113113for ii=2:length(infiles)
    114114  % Read the nifti file
    115   tmp_data = an2_read_nifti(infiles{ii});
     115  tmp_data = aedes_read_nifti(infiles{ii});
    116116  sz(1)=size(tmp_data.FTDATA,1);
    117117  sz(2)=size(tmp_data.FTDATA,2);
     
    122122  DATA.FTDATA(:,:,:,ii) = tmp_data.FTDATA;
    123123  if showWbar
    124         an2_wbar(ii/length(infiles),wbh,...
     124        aedes_wbar(ii/length(infiles),wbh,...
    125125          sprintf('Reading 3D NIfTI files...%d/%d',ii,length(infiles)))
    126126  end
     
    154154% Write the resulting 4D NIfTI file
    155155if showWbar
    156   cwh = an2_calc_wait(sprintf('Writing 4D NIfTI file:\n%s',outfile));
     156  cwh = aedes_calc_wait(sprintf('Writing 4D NIfTI file:\n%s',outfile));
    157157end
    158 an2_write_nifti(DATA,outfile,...
     158aedes_write_nifti(DATA,outfile,...
    159159  'VoxelSize',vox_size,...
    160160  'XYZUnits',xyzunits,...
Note: See TracChangeset for help on using the changeset viewer.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008