Changeset 98 for aedes.m


Ignore:
Timestamp:
Oct 29, 2009, 3:57:22 PM (9 years ago)
Author:
tjniskan
Message:
  • 3D ROIs can now be loaded on 4D datasets if the first three

dimensions match.

  • Corrected a small bug in the time series viewing in Aedes.
  • Added Fourier domain smoothing to misclib/fmri_smooth.m
  • Removed an unnecessary matrix replication from

plugins/fmri_plugins/basic_fmri_analysis.m

M misclib/fmri_smooth.m
M aedes.m
M plugins/fmri_plugins/basic_fmri_analysis.m
M aedes_revision.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aedes.m

    r97 r98  
    58815881  tmp = abs(diff([data_mn data_mx]))*0.05;
    58825882  ylim = [data_mn-tmp data_mx+tmp];
     5883  if ylim(1)==ylim(2)
     5884    ylim(1)=ylim(1)-1;
     5885    ylim(2)=ylim(2)+1;
     5886  end
    58835887  set(H.TSAX,'ylim',ylim)
    58845888  if isEPI
     
    84958499            tmp.ROI = [];
    84968500            %tmp.FileInfo = [];
    8497             tmp.ROI.voxels{1} = tmp_data.FTDATA;
     8501            tmp.ROI.voxels{1} = logical(tmp_data.FTDATA);
    84988502            tmp.ROI.fpath{1} = [fp,filesep];
    84998503            tmp.ROI.fname{1} = f_name;
     
    86018605            roi_sz=size(tmp.ROI(1).voxels{ii});
    86028606            im_sz = size(DATA{ii}.FTDATA);
    8603 
     8607           
     8608            % Allow loading a 3D ROI over a 4D data if 3D dimensions
     8609            % match...
     8610            if ~Dat.isDataMixed && ndims(DATA{ii}.FTDATA)==4 && ...
     8611                ndims(tmp.ROI(1).voxels{ii})==3 && ...
     8612                ismember(roi_sz(1:3),im_sz(1:3),'rows')
     8613             
     8614              tmp2=tmp.ROI;
     8615              for kk=1:length(tmp2)
     8616                tmp.ROI(kk).voxels{ii} = false(size(DATA{ii}.FTDATA));
     8617                tmp.ROI(kk).voxels{ii}(:,:,:,Dat.CurrentVol)=tmp2(kk).voxels{ii};
     8618              end
     8619              roi_sz=size(tmp.ROI(1).voxels{ii});
     8620              im_sz = size(DATA{ii}.FTDATA);
     8621              clear tmp2
     8622            end
     8623           
    86048624            %% Abort loading of ROIs if relative dimensions are not the same
    86058625            if length(tmp.ROI(1).voxels)~=length(DATA) || ...
Note: See TracChangeset for help on using the changeset viewer.

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