Creating a GUI to dictate caxis values
Ältere Kommentare anzeigen
Greetings,
I am looking to create a GUI that would help with image analysis, therefore I wanted to implement interactive sliders that would change the values of the colormap limits using caxis. (changing the 'contrast')
Is it possible to implement variables (for example: caxis([cmin cmax])) that would be defined by the position of the slider when the user moves it, and automatically update the image plot?
Here's an excerpt of my code (different sliders for different plots)
figure ('Position', [200 50 850 200])
subplot(1,3,1);
imagesc(im2);
title('Interface 1'); caxis([cmin1 cmax1]);
subplot(1,3,2);
imagesc(im5);
title('Ratio'); caxis([cmin2 cmax2]);
subplot(1,3,3);
imagesc(im3);
title('Interface 2'); caxis([cmin3 cmax3]);
I have also created a GUI format through the 'guide' command.
Thank you!
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!