Changeset 858 for trunk/src/mouse_motion.m
- Timestamp:
- Jan 26, 2015, 7:43:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_motion.m
r856 r858 247 247 par_civ.Civ1_V_tps=Field.Civ1_V_tps; 248 248 par_civ.Civ1_Dt=Field.Civ1_Dt; 249 par_civ.Civ2_Dt=Field.Civ2_Dt; 249 250 shiftx=Field.ShiftX(ind_pt); 250 251 shifty=Field.ShiftY(ind_pt); … … 290 291 par_civ.ImageWidth=size(par_civ.ImageA,2); 291 292 par_civ.Grid=[xround yround];% PIV calculation with a single point 292 Param.ActionInput.(CivOption)=par_civ; 293 294 % .ImageA: first image for correlation (matrix) 295 % .ImageB: second image for correlation(matrix) 296 % .CorrBoxSize: 1,2 vector giving the size of the correlation box in x and y 297 % .SearchBoxSize: 1,2 vector giving the size of the search box in x and y 298 % .SearchBoxShift: 1,2 vector or 2 column matrix (for civ2) giving the shift of the search box in x and y 299 % .CorrSmooth: =1 or 2 determines the choice of the sub-pixel determination of the correlation max 300 % .ImageWidth: nb of pixels of the image in x 301 % .Dx, Dy: mesh for the PIV calculation 302 % .Grid: grid giving the PIV calculation points (alternative to .Dx .Dy) 303 % .Mask: name of a mask file or mask image matrix itself 304 % .MinIma: thresholds for image luminosity 305 % .MaxIma 306 % .CheckDeformation=1 for subpixel interpolation and image deformation (linear transform) 307 % .DUDX: matrix of deformation obtained from patch at each grid point 308 % .DUDY 309 % .DVDX: 310 % .DVDY 311 293 Param.ActionInput.(CivOption)=par_civ; 312 294 [Data,errormsg,result_conv]= civ_series(Param); 313 295 if ~isempty(errormsg) … … 330 312 set(0,'CurrentFigure',corrfig(1)) 331 313 AxeData.CurrentCorrImage=imagesc(rangx,-rangy,result_conv,[0 1]); 332 AxeData.CurrentVector=line([0 Data. Civ1_U],[0 Data.Civ1_V],'Tag','vector');333 AxeData.TitleHandle=title(num2str(par .Grid));314 AxeData.CurrentVector=line([0 Data.([CivOption '_U'])],[0 Data.([CivOption '_V'])],'Tag','vector'); 315 AxeData.TitleHandle=title(num2str(par_civ.Grid)); 334 316 colorbar 335 317 set(CurrentAxes,'UserData',AxeData) … … 340 322 set(AxeData.CurrentCorrImage,'XData',rangx) 341 323 set(AxeData.CurrentCorrImage,'YData',-rangy) 342 set(AxeData.CurrentVector,'XData',[0 Data. Civ1_U],'YData',[0 Data.Civ1_V])343 set(AxeData.TitleHandle,'String',num2str(par .Grid))324 set(AxeData.CurrentVector,'XData',[0 Data.([CivOption '_U'])],'YData',[0 Data.([CivOption '_V'])]); 325 set(AxeData.TitleHandle,'String',num2str(par_civ.Grid)) 344 326 end 345 327 end
Note: See TracChangeset
for help on using the changeset viewer.