필터 지우기
필터 지우기

how to plot a result .m file in gui?

조회 수: 1 (최근 30일)
Bekhtaoui Abdelhakim
Bekhtaoui Abdelhakim 2019년 4월 20일
댓글: Walter Roberson 2019년 4월 20일
how can i display the result of a .m program in gui axes
here is my program it displays an image in hsv i put this image in the hsv1 attribute
how should I do it
thank you
function hsv()
img =imread('C:\Users\home\Documents\PFE\Cropedimg.jpg');
%img =imread('C:\Users\home\Documents\PFE\method\fing.jpg');
figure(1);
subplot(1,2,1)
img1=rgb2hsv(img);
%img1=rgb2hsv(img);
h = img1(:,:,1);s = img1(:,:,2);v = img1(:,:,3);
vv= retinex_frankle_mccann(v, 2);
hsv1=cat(3,(h),(s),(vv));
hsv1=hsv2rgb(hsv1);
subplot(1,2,2);
%figure;
imshow(hsv1);%the result img
title('ilimunation image');
  댓글 수: 3
Bekhtaoui Abdelhakim
Bekhtaoui Abdelhakim 2019년 4월 20일
i mean the result image is imshow(hsv1)
Walter Roberson
Walter Roberson 2019년 4월 20일
Your code does appear to be doing the imshow() into subplot(1,2,2), so I do not understand what you would like to do differently than what it is already doing?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by