1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152
| function popFigure2_Callback(hObject, eventdata, handles)
% hObject handle to popFigure2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
figure2 = get(hObject, 'Value');
% handles.exprt_fig2 = get(hObject, 'Value');
set(handles.textAxes2,'String',handles.setFigure{figure2});
axes(handles.axes2);
switch handles.setFigure{figure2}
case 'SQx'
handles.axes2 = imagesc(handles.SQx);
case 'SQy'
handles.axes2 = imagesc(handles.SQy);
case 'MQx'
handles.axes2 = imagesc(handles.MQx);
case 'MQy'
handles.axes2 = imagesc(handles.MQy);
end
% clear figure2;
% clear axes;
% guidata(hObject, handles);
% --- Executes during object creation, after setting all properties.
function popFigure2_CreateFcn(hObject, eventdata, handles)
% hObject handle to popFigure2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
if ispc
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
% --- Executes on selection change in popFigure1.
function popFigure1_Callback(hObject, eventdata, handles)
% hObject handle to popFigure1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
figure1 = get(hObject, 'Value');
% handles.exprt_fig1 = get(hObject, 'Value');
set(handles.textAxes1,'String',handles.setFigure{figure1});
axes(handles.axes1);
switch handles.setFigure{figure1}
case 'SQx'
handles.axes1 = imagesc(handles.SQx);
case 'SQy'
handles.axes1 = imagesc(handles.SQy);
case 'MQx'
handles.axes1 = imagesc(handles.MQx);
case 'MQy'
handles.axes1 = imagesc(handles.MQy);
end
% clear figure1;
% clear axes;
% guidata(hObject, handles);
% --- Executes during object creation, after setting all properties.
function popFigure1_CreateFcn(hObject, eventdata, handles)
% hObject handle to popFigure1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: popupmenu controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
% --- Executes on selection change in popMain.
function popMain_Callback(hObject, eventdata, handles)
% hObject handle to popMain (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
figureMain = get(hObject, 'Value');
% handles.exprt_figMain = get(hObject, 'Value');
set(handles.textAxes,'String',handles.setFigure{figureMain});
axes(handles.axes);
switch handles.setFigure{figureMain}
case 'SQx'
handles.axes = imagesc(handles.SQx);
case 'SQy'
handles.axes = imagesc(handles.SQy);
case 'MQx'
handles.axes = imagesc(handles.MQx);
case 'MQy'
handles.axes = imagesc(handles.MQy);
end
% clear figureMain;
% clear axes;
% guidata(hObject, handles);
% --- Executes during object creation, after setting all properties.
function popMain_CreateFcn(hObject, eventdata, handles)
if ispc
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
% --- Executes on selection change in popupMenuAxes1.
function popupmenuAxes1_Callback(hObject, eventdata, handles)
handles.Value1 = get(hObject, 'Value')
axes(handles.axes1);
switch handles.imgProcess{handles.Value1}
case 'Fliplr'
handles.Value1
switch handles.setFigure{handles.figure1}
case 'SQx'
% axes(handles.axes1);
handles.axes1 = imagesc(fliplr(handles.SQx));
case 'SQy'
% axes(handles.axes1);
handles.axes1 = imagesc(fliplr(handles.SQy));
case 'MQx'
% axes(handles.axes1);
handles.axes1 = imagesc(fliplr(handles.MQx));
case 'MQy'
% axes(handles.axes1);
handles.axes1 = imagesc(fliplr(handles.MQy));
end
case 'Flipud'
handles.Value1
switch handles.setFigure{handles.exprt_fig1}
case 'SQx'
handles.axes1 = imagesc(flipud(handles.SQx));
case 'SQy'
handles.axes1 = imagesc(flipud(handles.SQy));
case 'MQx'
handles.axes1 = imagesc(flipud(handles.MQx));
case 'MQy'
handles.axes1 = imagesc(flipud(handles.MQy));
end
end |
Partager