Changeset 640


Ignore:
Timestamp:
May 21, 2013, 1:14:33 AM (12 years ago)
Author:
sommeria
Message:

introduction of mask on projection: correction of merge_proj

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/merge_proj.m

    r635 r640  
    164164%use Param.InputFields for all views
    165165
    166 %% MAIN LOOP ON SLICES
     166%% MAIN LOOP ON FIELDS
    167167%%%%%%%%%%%%% STANDARD PART (DO NOT EDIT) %%%%%%%%%%%%
    168168% for i_slice=1:NbSlice
     
    205205            end
    206206        end
    207 
    208         %% check whether tps is needed, then calculate tps coefficients if needed
    209 %         check_tps=0;
    210 %         if isfield(Param.InputFields,'FieldName')
    211 %             if ischar(Param.InputFields.FieldName)
    212 %                 Param.InputFields.FieldName={Param.InputFields.FieldName};
    213 %             end
    214 %         else
    215 %             Param.InputFields.FieldName={};
    216 %         end
    217 %         for ilist=1:numel(Param.InputFields.FieldName)
    218 %             switch Param.InputFields.FieldName{ilist}
    219 %                 case {'vort','div','strain'}
    220 %                     check_tps=1;
    221 %             end
    222 %         end
    223 
    224207       
    225208         %% calculate tps coefficients if needed
     
    234217                return
    235218            end
     219        end
     220       
     221        %% mask
     222        if isfield(Param,'Mask')
     223            %TODO: introduce a table of masks for multiple views
     224            [MaskData{iview},tild,errormsg] = read_field(Param.Mask,'image');
     225            if ~isempty(transform_fct) && nargin(transform_fct)>=2
     226                    MaskData{iview}=transform_fct(MaskData,XmlData{iview});
     227            end
     228            [Data{iview},errormsg]=mask_proj(Data{iview},MaskData{iview});
    236229        end
    237230    end
Note: See TracChangeset for help on using the changeset viewer.