Changeset 151 for trunk


Ignore:
Timestamp:
Dec 3, 2010, 2:30:37 PM (14 years ago)
Author:
sommeria
Message:

correction to deal with 3D slices: introduction of PlaneCoord? as output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/transform_field/phys.m

    r116 r151  
    100100DataOut=Data;%default
    101101DataOut.CoordType='phys'; %put flag for physical coordinates
     102if isfield(Calib,'SliceCoord')
     103    DataOut.PlaneCoord=Calib.SliceCoord;%to generalise for any plane
     104end
    102105% The transform ACTS ONLY IF .CoordType='px'and Calib defined
    103106if isfield(Data,'CoordType')&& isequal(Data.CoordType,'px')&& ~isempty(Calib)
     
    106109    else
    107110        DataOut.CoordUnit='cm'; %default
    108 %     elseif isfield(DataOut,'CoordUnit')
    109 %         DataOut=rmfield(DataOut,'CoordUnit');
    110111    end
    111112    DataOut.TimeUnit='s';
Note: See TracChangeset for help on using the changeset viewer.