Creating a GUI to dictate caxis values
显示 更早的评论
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!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!