Changeset 883 for trunk/src/series
- Timestamp:
- Mar 13, 2015, 8:19:39 PM (10 years ago)
- Location:
- trunk/src/series
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/aver_stat.m
r881 r883 185 185 transform_fct=str2func(Param.FieldTransform.TransformName); 186 186 rmpath(Param.FieldTransform.TransformPath) 187 if isfield(Param,'TransformInput') 188 XmlData{1}.TransformInput=Param.TransformInput; 189 end 187 190 end 188 191 -
trunk/src/series/civ_input.m
r881 r883 688 688 nbfield=siztime(1)-1; 689 689 nbfield2=siztime(2)-1; 690 indchosen=1; %%first pair selected by default690 %indchosen=1; %%first pair selected by default 691 691 %displ_num used to define the indices of the civ_input pairs 692 692 % in mode 'pair j1-j2', j1 and j2 are the file indices, else the indices … … 907 907 nbpair=200;%default 908 908 select=ones(size(1:nbpair));%flag for displayed pairs =1 for display 909 nbpair=200; %default909 %nbpair=200; %default 910 910 911 911 %% determine the menu display in .ListPairCiv1 … … 915 915 if select(ipair) 916 916 displ_pair{ipair}=['Di= ' num2str(-floor(ipair/2)) '|' num2str(ceil(ipair/2))]; 917 displ_pair_dt{ipair}=displ_pair{ipair}; 917 918 if ~checkframe 918 919 if size(Time,1)>=ref_i+1+ceil(ipair/2) && size(Time,2)>=ref_j+1&& ref_i-floor(ipair/2)>=0 && ref_j>=0 919 920 dt=Time(ref_i+1+ceil(ipair/2),ref_j+1)-Time(ref_i+1-floor(ipair/2),ref_j+1);%Time interval dtref_j+1 920 displ_pair {ipair}=[displ_pair{ipair} ' :dt= ' num2str(dt*1000)];921 displ_pair_dt{ipair}=[displ_pair_dt{ipair} ' :dt= ' num2str(dt*1000)]; 921 922 end 922 923 else 923 924 dt=ipair/1000; 924 displ_pair {ipair}=[displ_pair{ipair} ' :dt= ' num2str(ipair)];925 displ_pair_dt{ipair}=[displ_pair_dt{ipair} ' :dt= ' num2str(ipair)]; 925 926 end 926 927 else 927 displ_pair{ipair}='...'; %pair not displayed in the menu 928 displ_pair{ipair}='...'; 929 displ_pair_dt{ipair}='...'; %pair not displayed in the menu 928 930 end 929 931 end … … 932 934 if select(ipair) 933 935 displ_pair{ipair}=['Dj= ' num2str(-floor(ipair/2)) '|' num2str(ceil(ipair/2))]; 936 displ_pair_dt{ipair}=displ_pair{ipair}; 934 937 if ~checkframe 935 938 if size(Time,2)>=ref_j+1+ceil(ipair/2) && size(Time,1)>=ref_i+1 && ref_j-floor(ipair/2)>=0 && ref_i>=0 936 939 dt=Time(ref_i+1,ref_j+1+ceil(ipair/2))-Time(ref_i+1,ref_j+1-floor(ipair/2));%Time interval dtref_j+1 937 displ_pair {ipair}=[displ_pair{ipair} ' :dt= ' num2str(dt*1000)];940 displ_pair_dt{ipair}=[displ_pair_dt{ipair} ' :dt= ' num2str(dt*1000)]; 938 941 end 939 942 else 940 943 dt=ipair/1000; 941 displ_pair {ipair}=[displ_pair{ipair} ' :dt= ' num2str(dt*1000)];944 displ_pair_dt{ipair}=[displ_pair_dt{ipair} ' :dt= ' num2str(dt*1000)]; 942 945 end 943 946 else 944 947 displ_pair{ipair}='...'; %pair not displayed in the menu 948 displ_pair_dt{ipair}='...'; %pair not displayed in the menu 945 949 end 946 950 end … … 956 960 index_pair=index_pair+1; 957 961 displ_pair{index_pair}=['j= ' num2stra(numod_a,nom_type_ima) '-' num2stra(numod_b,nom_type_ima)]; 962 displ_pair_dt{ipair}=displ_pair{ipair}; 958 963 dt(index_pair)=numod_b-numod_a;%default dt 959 964 if size(Time,1)>ref_i && size(Time,2)>numod_b % && ~checkframe 960 965 dt(index_pair)=Time(ref_i+1,numod_b+1)-Time(ref_i+1,numod_a+1);% Time interval dt 961 displ_pair {index_pair}=[displ_pair{index_pair} ' :dt= ' num2str(dt(index_pair)*1000)];966 displ_pair_dt{index_pair}=[displ_pair_dt{index_pair} ' :dt= ' num2str(dt(index_pair)*1000)]; 962 967 end 963 968 end … … 966 971 [tild,indsort]=sort(dt); 967 972 displ_pair=displ_pair(indsort); 973 displ_pair_dt=displ_pair_dt(indsort); 968 974 case 'displacement' 969 975 displ_pair={'Di=Dj=0'}; 976 displ_pair_dt={'Di=Dj=0'}; 970 977 end 971 978 if index==1 972 set(handles.ListPairCiv1,'String',displ_pair ');979 set(handles.ListPairCiv1,'String',displ_pair_dt'); 973 980 end 974 981 … … 976 983 %ichoice=find(select,1);% index of first selected pair 977 984 %if (isempty(ichoice) || ichoice < 1); ichoice=1; end; 985 end_pair=regexp(PairCiv1Init,' :dt='); 986 if ~isempty(end_pair) 987 PairCiv1Init=PairCiv1Init(1:end_pair-1); 988 end 978 989 ichoice=find(strcmp(PairCiv1Init,displ_pair'),1); 979 990 if ~isempty(ichoice) … … 988 999 %% determine the default selection in the pair menu for Civ2 989 1000 if strcmp(get(handles.ListPairCiv2,'Visible'),'on') 1001 end_pair=regexp(PairCiv2Init,' :dt='); 1002 if ~isempty(end_pair) 1003 PairCiv2Init=PairCiv2Init(1:end_pair-1); 1004 end 990 1005 ichoice=find(strcmp(PairCiv2Init,displ_pair'),1); 991 1006 if ~isempty(ichoice) … … 994 1009 set(handles.ListPairCiv2,'Value',1) 995 1010 end 996 997 %998 % initial=get(handles.ListPairCiv2,'Value');999 %1000 %1001 % if initial>length(displ_pair')%|~isequal(select(initial),1)1002 % if ichoice <= length(displ_pair')1003 % set(handles.ListPairCiv2,'Value',ichoice);% same pair proposed by default for civ21004 % else1005 % set(handles.ListPairCiv2,'Value',1);% same pair proposed by default for civ21006 % end1007 % end1008 1011 else 1009 1012 set(handles.ListPairCiv2,'Value',get(handles.ListPairCiv1,'Value'))% initiate the choice of Civ2 as a reproduction of if civ1 1010 1013 end 1011 set(handles.ListPairCiv2,'String',displ_pair ');1014 set(handles.ListPairCiv2,'String',displ_pair_dt'); 1012 1015 set(gcf,'Pointer','arrow')% Indicate that the process is finished 1013 1014 1015 1016 % %------------------------------------------------------------------------1017 % % call 'view_field.fig' to display the field selected in the list of 'status'1018 % function open_view_field(hObject, eventdata)1019 % %------------------------------------------------------------------------1020 % list=get(hObject,'String');1021 % index=get(hObject,'Value');1022 % rootroot=get(hObject,'UserData');1023 % filename=list{index};1024 % ind_dot=strfind(filename,'...');1025 % filename=filename(1:ind_dot-1);1026 % filename=fullfile(rootroot,filename);1027 % delete(get(hObject,'parent'))%delete the display figure to stop the check process1028 % if exist(filename,'file')%visualise the vel field if it exists1029 % uvmat(filename)1030 % set(gcbo,'Value',1)1031 % end1032 1016 1033 1017 … … 1160 1144 set(handles.ConfigSource,'String','NEW') 1161 1145 set(handles.OK,'BackgroundColor',[1 0 1]) 1146 if get(handles.CheckDeformation,'Value') 1147 set(handles.num_CorrSmooth,'Visible','off') 1148 else 1149 set(handles.num_CorrSmooth,'Visible','on') 1150 end 1162 1151 1163 1152 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -
trunk/src/series/civ_series.m
r880 r883 1036 1036 yi=(1:mesh:size(image1_crop,1))'; 1037 1037 [XI,YI]=meshgrid(xi-ceil(size(image1_crop,2)/2),yi-ceil(size(image1_crop,1)/2)); 1038 XIant=XI-par_civ.DUDX(ivec)*XI -par_civ.DUDY(ivec)*YI+ceil(size(image1_crop,2)/2);1039 YIant=YI -par_civ.DVDX(ivec)*XI-par_civ.DVDY(ivec)*YI+ceil(size(image1_crop,1)/2);1038 XIant=XI-par_civ.DUDX(ivec)*XI+par_civ.DUDY(ivec)*YI+ceil(size(image1_crop,2)/2); 1039 YIant=YI+par_civ.DVDX(ivec)*XI-par_civ.DVDY(ivec)*YI+ceil(size(image1_crop,1)/2); 1040 1040 image1_crop=interp2(image1_crop,XIant,YIant); 1041 1041 image1_crop(isnan(image1_crop))=0; … … 1044 1044 image2_crop=interp2(image2_crop,xi,yi,'*spline'); 1045 1045 image2_crop(isnan(image2_crop))=0; 1046 %par_civ.CorrSmooth=3;%%%%%%%%%%%%%%%%%%% 1047 %% 1046 par_civ.CorrSmooth=2;% use SUBPIX2DGAUSS (take into account more points near the max) 1048 1047 end 1049 1048 sum_square=sum(sum(image1_crop.*image1_crop)); -
trunk/src/series/merge_proj.m
r880 r883 179 179 transform_fct=str2func(Param.FieldTransform.TransformName); 180 180 cd (currentdir) 181 if isfield(Param,'TransformInput') 182 for iview=1:NbView 183 XmlData{iview}.TransformInput=Param.TransformInput; 184 end 185 end 181 186 end 182 187 %%%%%%%%%%%% END STANDARD PART %%%%%%%%%%%% -
trunk/src/series/time_series.m
r881 r883 220 220 transform_fct=str2func(Param.FieldTransform.TransformName); 221 221 rmpath(Param.FieldTransform.TransformPath) 222 if isfield(Param,'TransformInput') 223 XmlData{1}.TransformInput=Param.TransformInput; 224 end 222 225 end 223 226
Note: See TracChangeset
for help on using the changeset viewer.