Effacer les filtres
Effacer les filtres

Executable file not function properly

3 vues (au cours des 30 derniers jours)
halawati cm
halawati cm le 10 Avr 2020
Commenté : Rik le 30 Avr 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 commentaire
Rik
Rik le 30 Avr 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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Geometric Transformation and Image Registration dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by