How to pass data within GUI functions (MATLAB GUI Tutorial with Image Processing )

Поделиться
HTML-код
  • Опубликовано: 7 фев 2025
  • Prerequisite:
    Noise Removal in colored Images using Median Filter | MATLAB
    • Noise Removal in color...
    Code :
    function varargout = App(varargin)
    gui_Singleton = 1;
    gui_State = struct('gui_Name', mfilename, ...
    'gui_Singleton', gui_Singleton, ...
    'gui_OpeningFcn', @App_OpeningFcn, ...
    'gui_OutputFcn', @App_OutputFcn, ...
    'gui_LayoutFcn', [] , ...
    'gui_Callback', []);
    if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
    end
    if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
    else
    gui_mainfcn(gui_State, varargin{:});
    end
    % End initialization code - DO NOT EDIT
    % --- Executes just before App is made visible.
    function App_OpeningFcn(hObject, eventdata, handles, varargin)
    % This function has no output args, see OutputFcn.
    % hObject handle to figure
    % eventdata reserved - to be defined in a future version of MATLAB
    % handles structure with handles and user data (see GUIDATA)
    % varargin command line arguments to App (see VARARGIN)
    % Choose default command line output for App
    handles.output = hObject;
    % Update handles structure
    guidata(hObject, handles);
    % UIWAIT makes App wait for user response (see UIRESUME)
    % uiwait(handles.figure1);
    % --- Outputs from this function are returned to the command line.
    function varargout = App_OutputFcn(hObject, eventdata, handles)
    varargout{1} = handles.output;
    % --- Executes on button press in Browse.
    function Browse_Callback(hObject, eventdata, handles)
    [filename, pathname] = uigetfile('*.*', 'Pick a MATLAB code file');
    if isequal(filename,0) || isequal(pathname,0)
    disp('User pressed cancel')
    else
    filename=strcat(pathname,filename);
    a=imread(filename);
    axes(handles.axes1);
    imshow(a);
    handles.o=a;
    guidata(hObject, handles);
    end
    % --- Executes on button press in Add_Noise.
    function Add_Noise_Callback(hObject, eventdata, handles)
    J=handles.o;
    J =imnoise(J,'salt & pepper', 0.4);
    axes(handles.axes2);
    imshow(J);
    handles.J=J;
    guidata(hObject, handles);
    % --- Executes on button press in Remove_Noise.
    function Remove_Noise_Callback(hObject, eventdata, handles)
    J=handles.J;
    p=medfilt3(J,[5,5,3]);
    axes(handles.axes3);
    imshow(p);
    Learn Complete Machine Learning & Data Science using MATLAB:
    • Data Science & Machine...
    Learn Digital Signal Processing using MATLAB:
    • Digital Signal Process...
    Learn Complete Image Processing & Computer Vision using MATLAB:
    • Digital Image Processi...
    🙏🙏🙏🙏🙏🙏🙏🙏
    YOU JUST NEED TO DO
    3 THINGS to support my channel
    LIKE
    SHARE
    &
    SUBSCRIBE
    TO MY RUclips CHANNEL
    #DigitalImageProcessing #MATLAB #ComputerVision

Комментарии • 23

  • @mustafasaz4466
    @mustafasaz4466 2 года назад +2

    Thanks for the information. It is really helped me.

    • @KnowledgeAmplifier1
      @KnowledgeAmplifier1  2 года назад +1

      Glad to know the video is helpful to you Mustafa Saz! If you want to explore MATLAB GUI in-depth , you can refer this -- www.quora.com/How-do-I-create-a-GUI-in-MATLAB/answer/Satadru-Mukherjee-8
      Wish you a very Happy New Year & Happy Learning

  • @idrisgenc6373
    @idrisgenc6373 2 года назад +1

    Very informative content, thank you bro

    • @KnowledgeAmplifier1
      @KnowledgeAmplifier1  2 года назад +1

      You are welcome İdris Genç! If you want to explore MATLAB GUI in-depth , you can refer this -- www.quora.com/How-do-I-create-a-GUI-in-MATLAB/answer/Satadru-Mukherjee-8
      Wish you a very Happy New Year & Happy Learning

  • @SaiNikhileshReddy
    @SaiNikhileshReddy 3 года назад

    Thanks brother. It really helped in getting clear idea of Guide.

  • @danielamare2685
    @danielamare2685 3 года назад +2

    Great job! Thank you bro! ......Subscribed!

  • @aungwintun-x1l
    @aungwintun-x1l Год назад

    How to call gui function not directly processing in gui but at main program another mat file

  • @fryatama
    @fryatama 3 года назад +1

    thankyou very much, I was helped

    • @KnowledgeAmplifier1
      @KnowledgeAmplifier1  3 года назад

      Welcome F. Tama! Glad to know that , the video was helpful to you ! Happy Learning😊

  • @poojapm4386
    @poojapm4386 3 года назад +1

    Thank you it really helped ✌

  • @aelaeb6391
    @aelaeb6391 2 года назад

    Sorry, it's possible to have a video with the explanation of dropdown buttons and explains its use for examples in the case of filtering images?

  • @dhiyaarifqi2366
    @dhiyaarifqi2366 3 года назад

    I'm using matlab 2015a and i can't use the "medfilt3" function, please help

  • @khanhlinh-mechatronicsengi9388
    @khanhlinh-mechatronicsengi9388 3 года назад

    How can I take pictures from the webcam
    That photo is saved in the directory you created using the path

    • @KnowledgeAmplifier1
      @KnowledgeAmplifier1  3 года назад

      You can refer this video --Complete Face Recognition Project Using MATLAB (Data Collection, Model Creation And Testing)
      ruclips.net/video/BU4NHgxPyLE/видео.html
      Here I have explained , how you can save the images captured by webcam in a folder/directory.
      Happy Learning :-)

    • @khanhlinh-mechatronicsengi9388
      @khanhlinh-mechatronicsengi9388 3 года назад

      @@KnowledgeAmplifier1 I want to use it purely with code, not by creating the directory manually

  • @alabijohn6449
    @alabijohn6449 3 года назад

    Is there a way to contact you??

  • @khanhlinh-mechatronicsengi9388
    @khanhlinh-mechatronicsengi9388 3 года назад

    using the matlab guide

  • @khanhlinh-mechatronicsengi9388
    @khanhlinh-mechatronicsengi9388 3 года назад

    hello ad

  • @srisupatmi6765
    @srisupatmi6765 3 года назад

    allow me to share your video. Thank you