필터 지우기
필터 지우기

Displaying image with push button in GUI

조회 수: 1 (최근 30일)
olu
olu 2014년 5월 18일
답변: Image Analyst 2014년 5월 18일
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에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by