Changeset 177 for aedes.m


Ignore:
Timestamp:
Sep 15, 2011, 10:13:39 AM (7 years ago)
Author:
tjniskan
Message:
  • Added support for reading complex data from bruker 2dseq files.
  • Fixed scaling of 3D data from 2dseq files.
  • Aedes now prompts for handling of complex data (absolute, real

or imag parts) if only complex data is read from a file.

  • Added an option for EPI phase correction in aedes_readvnmr and epi_recon

M aedes_readbruker.m
M aedes_readvnmr.m
M aedes.m
M aedes_revision.m
M vnmr_recon/epi_recon.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aedes.m

    r171 r177  
    175175        end
    176176               
    177         DATA{1}.FTDATA = abs(DATA{1}.KSPACE);
     177        %DATA{1}.FTDATA = abs(DATA{1}.KSPACE);
    178178      end
    179179    elseif isnumeric(DATA) || islogical(DATA)
     
    22922292
    22932293% Check if data file contain only kspace information
    2294 if isfield(DATA{1},'KSPACE') && ...
    2295         (isempty(DATA{1}.FTDATA) & ~isempty(DATA{1}.KSPACE) )
    2296   DATA{1}.FTDATA = abs(DATA{1}.KSPACE);
     2294if length(DATA)==1 && isfield(DATA{1},'KSPACE') && ...
     2295                (isempty(DATA{1}.FTDATA) & ~isempty(DATA{1}.KSPACE) )
     2296        drawnow;
     2297        resp=questdlg(['The inputted DATA structure contains only k-space',...
     2298                ' information. Do you want to view real, imaginary, or absolute',...
     2299                ' part of the complex k-space?'],...
     2300                'Complex data inputted',...
     2301                'Real','Imaginary','Absolute','Absolute');
     2302        if strcmpi(resp,'Real')
     2303                DATA{1}.FTDATA = real(DATA{1}.KSPACE);
     2304        elseif strcmpi(resp,'Imaginary')
     2305                DATA{1}.FTDATA = imag(DATA{1}.KSPACE);
     2306        elseif strcmpi(resp,'Absolute')
     2307                DATA{1}.FTDATA = abs(DATA{1}.KSPACE);
     2308        else
     2309                DATA=[];
     2310                return
     2311        end
    22972312end
    22982313
Note: See TracChangeset for help on using the changeset viewer.

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