- Load the Pre-trained Network: Load your pre-trained network when the GUI initializes. This can be done in the “OpeningFcn” of your GUIDE-generated .m file, which is executed before the GUI becomes visible.
- Upload and Display the Image: In the callback for your upload button, you can implement functionality to upload and display the image within the axes you've designed.
- Classify the Uploaded Image: For the classification button, you can set up a callback that processes the uploaded image according to the input requirements of your pre-trained network (e.g., resizing), performs classification, and then displays or returns the classification result.
- https://www.mathworks.com/help/matlab/creating_guis/write-callbacks-using-the-guide-workflow.html
- https://www.mathworks.com/help/matlab/creating_guis/share-data-among-callbacks.html