I am trying to simply multiply a matrix to an image an get an output, and all of this has to be done in matlab GUIDE. I am not experienced in the language and due date is really soon, this is the code:
function t1_OpeningFcn(hObject, eventdata, handles, varargin)
imgview=imread('1.jpg');
imshow(imgview)
guidata(hObject, handles);
function varargout = t1_OutputFcn(hObject, eventdata, handles)
varargout{1} = handles.output;
function slider3_Callback(hObject, eventdata, handles)
function pushbutton5_Callback(hObject, eventdata, handles)
B=4;
set(handles.imgview,'CData',B);
I am trying simply to let the slider pick a number to multiply to the image for now, or let a value when clicking a button multiply the image!
image of gui: http://imageshack.us/photo/my-images/821/testojh.jpg/