Changeset 413 for trunk/src/mouse_motion.m
- Timestamp:
- May 8, 2012, 2:27:50 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_motion.m
r399 r413 212 212 xround=Field.X(ind_pt); 213 213 yround=Field.Y(ind_pt); 214 par.Grid=[xround size(Field.A,1)-yround+1]; 214 % par.Grid=[xround size(Field.A,1)-yround+1]; 215 par.Grid=[xround yround]; 215 216 % mark the correlation box with a rectangle 216 217 par.ImageA=Field.A; … … 258 259 corrfig=findobj(allchild(0),'tag','corrfig'); 259 260 if ~isempty(corrfig) 260 set(0,'CurrentFigure',corrfig(1)) 261 set(0,'CurrentFigure',corrfig(1)) 261 262 AxeData.CurrentCorrImage=imagesc(rangx,-rangy,result_conv,[0 1]); 262 263 AxeData.CurrentVector=line([0 Data.Civ1_U],[0 Data.Civ1_V],'Tag','vector'); 264 AxeData.TitleHandle=title(num2str(par.Grid)); 263 265 colorbar 264 266 set(haxes,'UserData',AxeData) … … 270 272 set(AxeData.CurrentCorrImage,'YData',-rangy) 271 273 set(AxeData.CurrentVector,'XData',[0 Data.Civ1_U],'YData',[0 Data.Civ1_V]) 274 set(AxeData.TitleHandle,'String',num2str(par.Grid)) 272 275 end 273 276 end
Note: See TracChangeset
for help on using the changeset viewer.