Clear Filters
Clear Filters

Executable file not function properly

3 views (last 30 days)
halawati cm
halawati cm on 10 Apr 2020
Commented: Rik on 30 Apr 2021
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 Comment
Rik
Rik on 30 Apr 2021
Comment posted as answer by @Nur Azmielia:
Did you have solve for this problem ? Because I also have the same situation of my file.

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!