Executable file not function properly
조회 수: 1 (최근 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
2021년 4월 30일
Did you have solve for this problem ? Because I also have the same situation of my file.
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!