Changeset 910 for trunk/src/series
- Timestamp:
- Jun 13, 2015, 7:20:37 PM (10 years ago)
- Location:
- trunk/src/series
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_input.m
r908 r910 130 130 return 131 131 end 132 if isfield(Data,'.Civ1_ImageA') 132 133 [PathCiv1_ImageA,Civ1_ImageA,FileExtA]=fileparts(Data.Civ1_ImageA);%look for the source image A 133 134 [PathCiv1_ImageB,Civ1_ImageB,FileExtA]=fileparts(Data.Civ1_ImageB);%look for the source image B 135 end 134 136 if isfield(Data,'Civ2_ImageA') 135 137 [PathCiv2_ImageA,Civ2_ImageA,FileExtA]=fileparts(Data.Civ2_ImageA); … … 137 139 end 138 140 if size(Param.InputTable,1)==1 141 if isfield(Data,'.Civ1_ImageA') 139 142 series('display_file_name',hhseries,Data.Civ1_ImageA,'append');%append the image series to the input list 140 end 141 [RootPath,SubDir,RootFile,i1,i2,j1,j2,FileExt,NomTypeImaA]=fileparts_uvmat(Data.Civ1_ImageA); 143 [RootPath,SubDir,RootFile,i1,i2,j1,j2,FileExt,NomTypeImaA]=fileparts_uvmat(Data.Civ1_ImageA); 142 144 [RootPath,SubDir,RootFile,i1,i2,j1,j2,FileExt,NomTypeImaB]=fileparts_uvmat(Data.Civ1_ImageB); 145 else 146 series('display_file_name',hhseries,Data.Civ2_ImageA,'append');%append the image series to the input list 147 [RootPath,SubDir,RootFile,i1,i2,j1,j2,FileExt,NomTypeImaA]=fileparts_uvmat(Data.Civ2_ImageA); 148 [RootPath,SubDir,RootFile,i1,i2,j1,j2,FileExt,NomTypeImaB]=fileparts_uvmat(Data.Civ2_ImageB); 149 end 150 end 151 143 152 iview_image=2;%line # for the input images 144 153 case 'civxdata'% case of civx data, -
trunk/src/series/civ_series.m
r908 r910 1024 1024 if sizemask > 1/2% eliminate point if more than half of the correlation box is masked 1025 1025 F(ivec)=3; % 1026 utable(ivec)=0; 1027 vtable(ivec)=0; 1026 1028 else 1027 1029 image1_crop=image1_crop.*~mask1_crop;% put to zero the masked pixels (mask1_crop='true'=1) … … 1042 1044 F(ivec)=3; 1043 1045 end 1044 if F(ivec)~=3 1046 if F(ivec)==3 1047 utable(ivec)=0; 1048 vtable(ivec)=0; 1049 else 1045 1050 %mask 1046 1051 if checkmask … … 1099 1104 catch ME 1100 1105 F(ivec)=3; 1106 disp(ME.message) 1101 1107 end 1102 1108 else … … 1127 1133 %http://urapiv.wordpress.com 1128 1134 peaky = y; 1129 if y <= npy-1 && y > =11135 if y <= npy-1 && y > 1 1130 1136 f0 = log(result_conv(y,x)); 1131 1137 f1 = log(result_conv(y-1,x)); … … 1136 1142 end 1137 1143 peakx=x; 1138 if x <= npx-1 && x > =11144 if x <= npx-1 && x > 1 1139 1145 f0 = log(result_conv(y,x)); 1140 1146 f1 = log(result_conv(y,x-1));
Note: See TracChangeset
for help on using the changeset viewer.