Ignore:
Timestamp:
Jun 11, 2012, 9:35:38 AM (12 years ago)
Author:
sommeria
Message:

aver_stat modified in the new rationalized form.
OTHER series FCTS NOT OPERATIONAL

File:
1 edited

Legend:

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

    r442 r447  
    1616%requests for the visibility of input windows in the GUI series  (activated directly by the selection in the menu ACTION)
    1717if ~exist('Param','var')
    18     GUI_input={};
     18    GUI_input={'OutputDirExt';'.lev'};
    1919    return %exit the function
    2020end
     
    9090                case {'video','mmreader'}
    9191                    A=read(MovieObject,i1_series{1}(jfile,ifile));
     92                    if strcmp(NomType,'*')
     93                        A=read(MovieObject,i1_series{1}(jfile,ifile));
     94                        NomType_out='_1';
     95                    else
     96                        A=imread(filename,j1_series{1}(jfile,ifile));
     97                        NomType_out='_1_1';
     98                    end
    9299                case {'vol','image'}
    93100                    A=imread(filename);
     101                    NomType_out='_1';
    94102                case 'multimage'
    95                     A=imread(filename,i1_series{1}(jfile,ifile));
     103                    if strcmp(NomType,'*')
     104                        A=imread(filename,i1_series{1}(jfile,ifile));
     105                        NomType_out='_1';
     106                    else
     107                        A=imread(filename,j1_series{1}(jfile,ifile));
     108                        NomType_out='_1_1';
     109                    end
    96110            end
    97111            C=levels(A);
    98             filename_new=fullfile_uvmat(RootPath,SubdirResult,RootFile,'.png',NomType,i1_series{1}(jfile,ifile),[],j1_series{1}(jfile,ifile));
     112            filename_new=fullfile_uvmat(RootPath,SubdirResult,RootFile,'.png',NomType_out,i1_series{1}(jfile,ifile),[],j1_series{1}(jfile,ifile));
    99113            imwrite(C,filename_new)
    100114            display([filename_new ' written'])
Note: See TracChangeset for help on using the changeset viewer.