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 中查找有关 Geometric Transformation and Image Registration 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by