Last change
on this file since 79 was
60,
checked in by sommeria, 15 years ago
|
-plot projections on a new specific GUI view_field, to avoid the multiplication of active figures
-introduce a ruler in uvmat (in menu/Tools), to measure distances and angles
-insert automatic detection of points for geometric calibration: tool 'detect_grid'. Four points, deliminating the grid to determine, must be marked with the mouse, as well as the physical grid. Then the points inside are automatically detected.
-reading plane positions in ImaDoc? improved to deal with volume scans
|
File size:
838 bytes
|
Rev | Line | |
---|
[36] | 1 | %--------------------------------------------------------- |
---|
| 2 | % --- Executes on button press in RUN. |
---|
| 3 | function PLOT(hget_field) |
---|
| 4 | %--------------------------------------------------------- |
---|
| 5 | [SubField,errormsg]=read_get_field(hget_field); |
---|
| 6 | if ~isempty(errormsg) |
---|
| 7 | msgbox_uvmat('ERROR',['error in get_field/PLOT input:' errormsg]) |
---|
| 8 | return |
---|
| 9 | end |
---|
| 10 | handles=guidata(hget_field); |
---|
| 11 | list_fig=get(handles.list_fig,'String'); |
---|
| 12 | val=get(handles.list_fig,'Value'); |
---|
| 13 | if strcmp(list_fig{val},'uvmat') |
---|
| 14 | uvmat(SubField) |
---|
| 15 | else |
---|
[60] | 16 | hfig=str2num(list_fig{val});% chosen figure number from tyhe GUI |
---|
| 17 | if isempty(hfig) |
---|
| 18 | hfig=figure; |
---|
| 19 | list_fig=[list_fig;num2str(hfig)]; |
---|
| 20 | set(handles.list_fig,'String',list_fig); |
---|
| 21 | haxes=axes; |
---|
| 22 | else |
---|
| 23 | figure(hfig); |
---|
| 24 | end |
---|
| 25 | haxes=findobj(hfig,'Type','axes'); |
---|
| 26 | plot_field(SubField,haxes) |
---|
[36] | 27 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.