matlab-gui

How to display desired image in MATLAB GUI?

十年热恋 提交于 2019-12-11 03:39:31
问题 I have a GUI as shown below: And I would like to apply Otsu threshold on the image displayed after contrast enhancement. But whenever I pressed the apply button for Otsu threshold,the Otsu threshold will be applied on the original image instead of the image after contrast enhancement (refer to the attached GUI and coding). So how do I overcome this problem? function pushbutton10_Callback(hObject, eventdata, handles) I = im2double(handles.im); imshow(I); % prompts for the two inputs prompt = {

Radio Button not working exclusively and giving error in MATLAB GUI

血红的双手。 提交于 2019-12-08 13:09:57
问题 I am writing a code for MATLAB GUI for pair comparison of images but i am stuck because my radio button are not working exclusivley gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @GUI_Personality_Impressions_OpeningFcn, ... 'gui_OutputFcn', @GUI_Personality_Impressions_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin && ischar(varargin{1}) gui_State.gui_Callback = str2func(varargin{1}); end if

Matlab GUI callback troubles

和自甴很熟 提交于 2019-12-04 07:14:44
问题 I try to make the uipanel change boarder colors while pressing and releasing mouse button on elsewhere except inputs and panel buttons. function [oldpropvalues,varargout]=DisableFigure(handlearray,prop,propvalue,varargin); oldpropvalues=get(handlearray,prop); %this IF is used to highlight the "modal" panel when anywhere outside it is pressed if length(varargin)==2 %these two are the old windowbutton functions which will be put back when the window is put back to normal. varargout{1}=get

Matlab GUI callback troubles

做~自己de王妃 提交于 2019-12-02 14:13:34
I try to make the uipanel change boarder colors while pressing and releasing mouse button on elsewhere except inputs and panel buttons. function [oldpropvalues,varargout]=DisableFigure(handlearray,prop,propvalue,varargin); oldpropvalues=get(handlearray,prop); %this IF is used to highlight the "modal" panel when anywhere outside it is pressed if length(varargin)==2 %these two are the old windowbutton functions which will be put back when the window is put back to normal. varargout{1}=get(varargin{1},'windowbuttondownfcn'); varargout{2}=get(varargin{1},'windowbuttonupfcn'); set(varargin{1},