How do I show VARIABLE image file in Matlab app designer?
4 次查看(过去 30 天)
显示 更早的评论
function testagiletahminButtonPushed(app, event)
load testag4.mat % Önceen eğitilen ağı yüklüyoruz.
[TestAdi, TestYolu] = uigetfile ('*.png','Test Resmi Seçiniz');
A=imread([TestYolu, TestAdi]);
app.Image.ImageSource=imshow(A) % ONLY THIS ONE IS FAULTY! EVERYTHING ELSE WORKS!
%IT DOESN'T ACCEPT THE CODE ABOVE! A IS THE INPUT "IMAGE" SELECTED BY
%THE USER. WHAT MUST THE CODE BE LIKE?
How do we fix this? It says:
Error using matlab.ui.control.Image/set.ImageSource (line 123)
ImageSource value must be a valid file path, or an m-by-n-by-3 color data matrix.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!