Computer Vision News - September 2021

3 Summary 5 App Designer for MatLab Let’s now start looking at what App Designer has to offer to its users. To open it, you can click on the Design App button in the Apps tab or just type “app designer” on the command window. App Designer offers two main components, a Design View where you will be able to lay out the visual components of your GUI; and a Code View which regulates the programming app behaviour. In the figure above, we nowsee theDesignViewmodality which allows to move over different components and drag them in your favourite location within the blank space at the centre (our new GUI project). If you press on Code View instead, you will be able to design your GUI using blocks of object-oriented code. Usual practice is to keep switching between the two modes to combine the visual and code behaviours of your GUI. On the left, you can find a menu with common and extra components such as buttons, check boxes, trees, and drop-down lists, or controls such as gauges, lamps, knobs, and switches that let you replicate the look and actions of instrumentation panels. You can also use container components, such as tabs, panels, and grid layouts to organize your user interface. On the right, you can modify and change positions, shape, and style of all your components trough the Inspector tab or add component callbacks, which regulate custom mouse and keyboard interactions that execute when a user interacts with your app. Once you are happy with your design, you can decide to package your MATLAB app into a single file that can be easily shared with other users using MATLAB Desktop and MATLAB Online . When you package an app, MATLAB creates a single app installation file (.mlappinstall). The installation file enables you and others to install your app and access it with a single-click from the app’s gallery. This can be shared on MATLAB Online and MATLAB Drive with other users who can collaborate to the design. Most importantly, AppDesigner alsooffers theopportunity tocreate standaloneapplications using MATLAB Compiler (you need to install this) and Simulink Compiler, or package them as interactive web apps. End-users can run the web apps directly from their browser without installing any additional software. Let’s now have a look at a practical example! I decided to design a simple app with two windows: one where we visualise an image from an online dataset containing 5 different labels, and the other one where the

RkJQdWJsaXNoZXIy NTc3NzU=