Azzera filtri
Azzera filtri

Displaying image with push button in GUI

1 visualizzazione (ultimi 30 giorni)
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

Risposta accettata

Image Analyst
Image Analyst il 18 Mag 2014
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);

Più risposte (0)

Categorie

Scopri di più su Images in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by