Changeset 409


Ignore:
Timestamp:
May 5, 2012, 6:36:06 PM (13 years ago)
Author:
sommeria
Message:

bug corrected in merge_proj (tansform_fct was not properly transmitted with the new version of series)

File:
1 edited

Legend:

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

    r401 r409  
    4343[filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param);
    4444
    45 %% coordinate transform or other user defined transform (TODO: case BATCH ?)
     45%% coordinate transform or other user defined transform
    4646transform_fct='';%default
    47 if isfield(Param,'transform_fct') % transform function handle
    48     transform_fct=Param.transform_fct;
     47if isfield(Param,'FieldTransform')&&isfield(Param.FieldTransform,'fct_handle')
     48    transform_fct=Param.FieldTransform.fct_handle;
    4949end
    5050
     
    8181for iview=1:nbview
    8282    test_movie(iview)=0;
    83     if ~isequal(hhh,'')&& mmreader.isPlatformSupported()
     83    if ~isempty(hhh)
    8484        if isequal(lower(FileExt{iview}),'.avi')
    8585            MovieObject{iview}=mmreader(fullfile(RootPath{iview},[RootFile{iview} FileExt{iview}]));
     
    319319         %projection on object (gridded plane)
    320320            if test_object
    321                 Field{iview}=proj_field(Field{iview},ProjObject);
     321                [Field{iview},errormsg]=proj_field(Field{iview},ProjObject);
     322                if ~isempty(errormsg)
     323                    msgbox_uvmat('ERROR',['error in merge_proge/proj_field: ' errormsg])
     324                    return
     325                end
    322326            end
    323327        end   
Note: See TracChangeset for help on using the changeset viewer.