Changeset 387 for trunk/src/mouse_motion.m
- Timestamp:
- Apr 4, 2012, 3:31:30 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_motion.m
r379 r387 245 245 end 246 246 [Data,errormsg,result_conv]= civ_matlab(Param); 247 rangx(1)=-(isx2-ibx2)+shiftx; 248 rangx(2)=isx2-ibx2+shiftx; 249 rangy(1)=-(isy2-iby2)-shifty; 250 rangy(2)=(isy2-iby2)-shifty; 251 hcorr=[]; 252 if isfield(AxeData,'CurrentCorrImage') 253 hcorr=AxeData.CurrentCorrImage; 254 if ~ishandle(hcorr) 255 hcorr=[]; 247 if ~isempty(errormsg) 248 text_displ_4=errormsg; 249 else 250 rangx(1)=-(isx2-ibx2)+shiftx; 251 rangx(2)=isx2-ibx2+shiftx; 252 rangy(1)=-(isy2-iby2)-shifty; 253 rangy(2)=(isy2-iby2)-shifty; 254 hcorr=[]; 255 if isfield(AxeData,'CurrentCorrImage') 256 hcorr=AxeData.CurrentCorrImage; 257 if ~ishandle(hcorr) 258 hcorr=[]; 259 end 256 260 end 257 end 258 if isempty(hcorr) 259 corrfig=findobj(allchild(0),'tag','corrfig'); 260 if ~isempty(corrfig) 261 set(0,'CurrentFigure',corrfig(1)) 262 AxeData.CurrentCorrImage=imagesc(rangx,-rangy,result_conv,[0 1]); 263 AxeData.CurrentVector=line([0 Data.Civ1_U],[0 Data.Civ1_V],'Tag','vector'); 264 colorbar 265 set(haxes,'UserData',AxeData) 266 set(get(AxeData.CurrentCorrImage,'parent'),'YDir','normal') 261 if isempty(hcorr) 262 corrfig=findobj(allchild(0),'tag','corrfig'); 263 if ~isempty(corrfig) 264 set(0,'CurrentFigure',corrfig(1)) 265 AxeData.CurrentCorrImage=imagesc(rangx,-rangy,result_conv,[0 1]); 266 AxeData.CurrentVector=line([0 Data.Civ1_U],[0 Data.Civ1_V],'Tag','vector'); 267 colorbar 268 set(haxes,'UserData',AxeData) 269 set(get(AxeData.CurrentCorrImage,'parent'),'YDir','normal') 270 end 271 else 272 set(AxeData.CurrentCorrImage,'CData',result_conv) 273 set(AxeData.CurrentCorrImage,'XData',rangx) 274 set(AxeData.CurrentCorrImage,'YData',-rangy) 275 set(AxeData.CurrentVector,'XData',[0 Data.Civ1_U],'YData',[0 Data.Civ1_V]) 267 276 end 268 else269 set(AxeData.CurrentCorrImage,'CData',result_conv)270 set(AxeData.CurrentCorrImage,'XData',rangx)271 set(AxeData.CurrentCorrImage,'YData',-rangy)272 set(AxeData.CurrentVector,'XData',[0 Data.Civ1_U],'YData',[0 Data.Civ1_V])273 277 end 274 278 end
Note: See TracChangeset
for help on using the changeset viewer.