how to fix these code lines for app designer
3 visualizaciones (últimos 30 dÃas)
Mostrar comentarios más antiguos
jana
el 4 de Dic. de 2022
Comentada: jana
el 5 de Dic. de 2022
e gaussian and periodic noise this is my code for them and they didnt work how can i fix them plz?
this is the gaussina noise code
a=(app.Image);
noise=imnoise(a,'gaussian');
I=imshow(noise,'parent',app.UIAxes2,...
'XData',[1 app.UIAxes2.Position(3)],...
'YData',[1 app.UIAxes2.Position(4)]);
app.UIAxes2.XLim=[0 I.XData(2)];
app.UIAxes2.YLim=[0 I.YData(2)];
and this the periodic noise code
a=(app.Image);
s=size(a);
[x,y]=meshgrid(1:s(1),1:s(2));
p=sin(x/3+y/5)+1;
noise=(im2double(a)+p/2)/2;
I=imshow(noise,'parent',app.UIAxes2,...
'XData',[1 app.UIAxes2.Position(3)],...
'YData',[1 app.UIAxes2.Position(4)]);
app.UIAxes2.XLim=[0 I.XData(2)];
app.UIAxes2.YLim=[0 I.YData(2)];
i also have this low pass filter also doesnt work how can i fix it
a=(app.Image);
f1=fspecial('average',[5,5]);
I=imshow(f1,'parent',app.UIAxes2,...
'XData',[1 app.UIAxes2.Position(3)],...
'YData',[1 app.UIAxes2.Position(4)]);
app.UIAxes2.XLim=[0 I.XData(2)];
app.UIAxes2.YLim=[0 I.YData(2
3 comentarios
Image Analyst
el 5 de Dic. de 2022
Editada: Image Analyst
el 5 de Dic. de 2022
Not sure what that means. Does it now work, or not? Since you accepted my suggested fix, I assume it's all working now. If not, attach your .mlapp file with the paperclip icon.
Respuesta aceptada
Image Analyst
el 4 de Dic. de 2022
Instead of
f1=fspecial('average',[5,5]);
I=imshow(f1,'parent',app.UIAxes2,...
'XData',[1 app.UIAxes2.Position(3)],...
'YData',[1 app.UIAxes2.Position(4)]);
app.UIAxes2.XLim=[0 I.XData(2)];
app.UIAxes2.YLim=[0 I.YData(2
try
f1=fspecial('average',[5,5]);
imshow(f1, [], 'parent',app.UIAxes2)
axis('on', 'image')
@jana you've asked 15 questions but have never awarded any of the people who helped you with "reputation points" by clicking the "Accept this answer" link. They'd appreciate it if you did that. 🙂
3 comentarios
Image Analyst
el 5 de Dic. de 2022
You had a number of major errors in those functions. I fixed them.
Más respuestas (0)
Ver también
CategorÃas
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!