Changeset 1152 for trunk/src/filter_tps.m
- Timestamp:
- Jul 4, 2024, 4:23:43 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/filter_tps.m
r1143 r1152 106 106 ind_ind_sel=1:numel(ind_sel);%default 107 107 if exist('Threshold','var')&&~isempty(Threshold) 108 FF(ind_sel)= 2*(NormDiff>Threshold);%put FF value to 2to identify the criterium of elimmination108 FF(ind_sel)=4*(NormDiff>Threshold);%put FF value to 4 to identify the criterium of elimmination 109 109 ind_ind_sel=find(FF(ind_sel)==0); % select the indices of remaining vectors in the subset of ind_sel vectors 110 110 end … … 166 166 U_smooth=U_smooth./nb_select;% take the average at the intersection of several subdomains 167 167 V_smooth=V_smooth./nb_select; 168 U_smooth(FF== 2)=U(FF==2);% set to the initial values the eliminated vectors (flagged as false)169 V_smooth(FF== 2)=V(FF==2);168 U_smooth(FF==4)=U(FF==4);% set to the initial values the eliminated vectors (flagged as false) 169 V_smooth(FF==4)=V(FF==4); 170 170 fill=zeros(NbCoord+1,NbCoord,size(SubRange,3)); %matrix of zeros to complement the matrix Data.Civ1_Coord_tps (conveninent for file storage) 171 171 Coord_tps=cat(1,Coord_tps,fill);
Note: See TracChangeset
for help on using the changeset viewer.