
Capas RGB en interfaz grafica
Publicado por anonymous (2 intervenciones) el 19/12/2016 10:57:45
Hola,
Quiero cargar las tres capas de RGB en distintas imagenes en un GUI pero el código que utilizo no me sirve, cómo puedo solucionarlo.
Muchas gracias.
Quiero cargar las tres capas de RGB en distintas imagenes en un GUI pero el código que utilizo no me sirve, cómo puedo solucionarlo.
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
% --- Executes on button press in R.
function R_Callback(hObject, eventdata, handles)
% hObject handle to R (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
guidata(hObject, handles);
mImage_R = handles.myImage; %Imagen cargada
Image_R=mImage_R(:,:,1);
image(Image_R, 'Parent', handles.axes2);
% --- Executes on button press in G.
function G_Callback(hObject, eventdata, handles)
% hObject handle to G (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
guidata(hObject, handles);
mImage_G = handles.myImage; %Imagen cargada
Image_G= mImage_G(:,:,2);
image(Image_G, 'Parent', handles.axes3);
% --- Executes on button press in B.
function B_Callback(hObject, eventdata, handles)
% hObject handle to B (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
guidata(hObject, handles);
mImage_B = handles.myImage; %Imagen cargada
Image_B = mImage_B(:,:,3);
image(Image_B, 'Parent', handles.axes4);
Muchas gracias.
Valora esta pregunta


0