Displaying image with push button in GUI

1 次查看(过去 30 天)
Hi All, At the moment, i am using the commands below in my code for creating an image. i would like to display the same image using the GUI using a pushbutton. The the tag name on the axis I would like to display on is: 'axis_1'. Please can anyone help me with the syntax for the callback?
Thanks in advance.
imh = image(cat(3,cells,z,z);
set(imh, 'erasemode', 'none');
axis equal
axis tight

采纳的回答

Image Analyst
Image Analyst 2014-5-18
rgbImage = cat(3, cells,z,z); % 3-D true color image from 2 other gray scale images.
axes(handles.axes_1); % Set current axes to this one.
imshow(rgbImage); % or use image() instead of imshow() if you want.
% Optional stuff:
axis on;
axis equal;
axis tight;
axis image;
title('This image is in axis_1', 'FontSize', 20);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Display Image 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by