필터 지우기
필터 지우기

Executable file not function properly

조회 수: 1 (최근 30일)
halawati cm
halawati cm 2020년 4월 10일
댓글: Rik 2021년 4월 30일
I have compiled "mySystem.mlapp" file into excutable file using MATLAB R2019b but its not properly executed as it should be. Only image come out but the calculation for performance metric does not appear in the textbox provided. My codes as below: kindly help me. tqvm.
inside upload button------
% Upload image from current folder
[filename, pathname]=uigetfile({'*.jpg'},'Upload Image');
app.Fullpath = strcat(pathname,filename);
app.imageOri = imread(app.Fullpath);
% Process image original to grayscale
app.imageOri = rgb2gray(app.imageOri);
imshow(app.imageOri,'Parent',app.UIAxes_Ori); %show image
%-----------------calculation start here-------------------
%added noise
a = imnoise(app.imageOri,'Gaussian', 0, 0.00001);
% calculates performance metric for the image
psnr_Ori= psnr(a,app.imageOri);
mse_Ori = immse(a,app.imageOri);
entropy_Ori = entropy(app.imageOri);
niqe_Ori = niqe(app.imageOri);
% place the value in the textbox provided
app.txt_PSNR_Ori.Value=psnr_Ori;
app.txt_MSE_Ori.Value=mse_Ori;
app.txt_ENTROPY_Ori.Value=entropy_Ori
app.txt_NIQE_Ori.Value=niqe_Ori;
Output in exe file:
;
  댓글 수: 1
Rik
Rik 2021년 4월 30일
Comment posted as answer by @Nur Azmielia:
Did you have solve for this problem ? Because I also have the same situation of my file.

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

답변 (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