how to make a gui for this code
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
key=input('enter the key')
j=imread('d.png');
i=single(j);
figure(1)
imshow(j)
title('original image');
c=i./.055;
e=fft(c);
f=ifft(e);
figure(2)
imshow(e);
title('encrypted image')
d=(f.*key);
d1=uint8(d);
figure(3)
imshow(d1);
title('decrypted image')
% i have designed a gui,but i dont know how to link with m file.need to know about callback function.. here is the panel i created..http://postimg.org/image/jgz59mdcf/ %%
0 commentaires
Réponses (1)
Image Analyst
le 22 Août 2013
Try this framework. Just plug your code into it. http://www.mathworks.com/matlabcentral/fileexchange/24224
This GUI will help the novice user get up to speed very quickly on using GUI-based applications. Everything is laid out in a very simple Step 1, Step 2, Step 3, etc. layout. It is a very good starting point for a typical image analysis application. This application uses GUIDE to do the user interface design, and has most of the basic controls such as buttons, listboxes, checkboxes, radio buttons, scrollbars, etc. It allows the user to select a folder of images, select one or more images and display them, to select a series of options, and to individually or batch process one or more images. The user can optionally apply a mask (region of interest) to the image so that only the area within the mask will be analyzed. The results are optionally sent to Excel. In this demo, I do some very basic particle sizing but in use, the user would replace that simple demo code in the function AnalyzeSingleImage() with their own code. Works with Windows or Unix since paths are all forward slashes. Requires the Image Processing Toolbox to do the simple particle sizing demo, but if you delete that demo code before using it, then the IP toolbox would not be required and it would still demonstrate the basic GUI-based file processing functionality.
0 commentaires
Voir également
Catégories
En savoir plus sur Convert Image Type dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!