Changeset 315 for trunk/src/mouse_motion.m
- Timestamp:
- Dec 3, 2011, 10:25:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_motion.m
r309 r315 218 218 % case of PIV correlation display 219 219 if test_piv 220 %par=civ('read_param_civ1',hhciv);221 220 par=read_GUI(hhciv.Civ1); 222 221 [dd,ind_pt]=min(abs(Field.X-xy(1,1))+abs(Field.Y-xy(1,2))); 223 222 xround=Field.X(ind_pt); 224 223 yround=Field.Y(ind_pt); 225 par. PointCoord=[xround size(Field.A,1)-yround+1];224 par.Grid=[xround size(Field.A,1)-yround+1]; 226 225 % mark the correlation box with a rectangle 227 par.filename_ima_a=Field.A; 228 par.filename_ima_b=Field.B; 226 par.ImageA=Field.A; 227 par.ImageB=Field.B; 228 [par.ImageHeight,par.ImageWidth]=size(par.ImageA); 229 229 Param.Civ1=par; 230 230 ibx2=floor((par.Bx-1)/2); … … 249 249 set(hhhh,'Position',[xround-isx2+shiftx yround-isy2+shifty 2*isx2 2*isy2]) 250 250 end 251 %[xtable, ytable, utable, vtable, ctable, typevector, result_conv] = ... 252 % pivlab (Field.A,Field.B,ibx2,iby2,isx2,isy2,shiftx,shifty,[xround size(Field.A,1)-yround+1], 1, []); 253 [Data,errormsg,result_conv]= civ_matlab(Param) 251 [Data,errormsg,result_conv]= civ_matlab(Param); 254 252 rangx(1)=-(isx2-ibx2)+shiftx; 255 253 rangx(2)=isx2-ibx2+shiftx; … … 268 266 set(0,'CurrentFigure',corrfig(1)) 269 267 AxeData.CurrentCorrImage=imagesc(rangx,-rangy,result_conv,[0 1]); 270 AxeData.CurrentVector=line([0 Data.Civ1_U],[0 -Data.Civ1_V],'Tag','vector'); 271 268 AxeData.CurrentVector=line([0 Data.Civ1_U],[0 Data.Civ1_V],'Tag','vector'); 272 269 colorbar 273 270 set(haxes,'UserData',AxeData) … … 278 275 set(AxeData.CurrentCorrImage,'XData',rangx) 279 276 set(AxeData.CurrentCorrImage,'YData',-rangy) 280 set(AxeData.CurrentVector,'XData',[0 Data.Civ1_U],'YData',[0 -Data.Civ1_V])277 set(AxeData.CurrentVector,'XData',[0 Data.Civ1_U],'YData',[0 Data.Civ1_V]) 281 278 end 282 279 end
Note: See TracChangeset
for help on using the changeset viewer.