Changeset 918 for trunk/src/set_grid.m
- Timestamp:
- Jun 26, 2015, 9:20:48 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/set_grid.m
r908 r918 24 24 function varargout = set_grid(varargin) 25 25 26 % Last Modified by GUIDE v2.5 01-Mar-2013 22:41:4326 % Last Modified by GUIDE v2.5 26-Jun-2015 08:54:56 27 27 28 28 % Begin initialization code - DO NOT PLOT … … 138 138 UvData=get(huvmat,'UserData'); 139 139 if isfield(UvData.Field, 'CoordUnit')&& strcmp(UvData.Field.CoordUnit,'pixel') 140 plot(grid_pix_A(:,1),grid_pix_A(:,2),'.' )141 else 142 plot(grid_phys(:,1),grid_phys(:,2),'.' )143 end 144 145 %% display grid in second image defi end140 plot(grid_pix_A(:,1),grid_pix_A(:,2),'.','Tag','proj_object') 141 else 142 plot(grid_phys(:,1),grid_phys(:,2),'.','Tag','proj_object') 143 end 144 145 %% display grid in second image defined 146 146 if ~isempty(grid_pix_B) 147 147 hviewfield=view_field(get(handles.imageB,'String')); … … 156 156 end 157 157 158 % --- Executes on button press in clear. 159 function clear_Callback(hObject, eventdata, handles) 160 huvmat=findobj(allchild(0),'tag','uvmat'); 161 if ~isempty(huvmat) 162 hhuvmat=guidata(huvmat); 163 hpoints=findobj(hhuvmat.PlotAxes,'Tag','proj_object'); 164 if ~isempty(hpoints) 165 delete(hpoints) 166 end 167 end 158 168 %------------------------------------------------------------------------ 159 169 % --- Executes on button press in CoordType. … … 184 194 YA=grid_pix_A(:,2); 185 195 unitcolumn=32*ones(size(XA)); 186 Xchar=num2str(XA );196 Xchar=num2str(XA,2); 187 197 blanc=char(unitcolumn); 188 Ychar=num2str(YA );198 Ychar=num2str(YA,2); 189 199 tete=['1 ' num2str(nbpointsA(1))]; 190 200 txt=[Xchar blanc Ychar]; … … 359 369 % Hints: get(hObject,'String') returns contents of ImageA as text 360 370 % str2double(get(hObject,'String')) returns contents of ImageA as a double 371 372 373 374
Note: See TracChangeset
for help on using the changeset viewer.