How to read loaded image?

2 visualizaciones (últimos 30 días)
Beatrice Eidukyte
Beatrice Eidukyte el 31 de Mzo. de 2016
Editada: Walter Roberson el 31 de Mzo. de 2016
Hello, I am stuck right now. I want to combine gui to other m file. My m file is creating image mosaic. I have gui with pushbuttons, one of them load an image like this:
global M im2
[path,user_cance]=imgetfile();
if user_cance
msgbox(sprintf('Error'),'Error','Error');
return
end
M=imread(path);
M=im2double(M);
im2=M;
axes(handles.axes1);
imshow(M);
And i dont know how to link this loaded image in mfile, where this loaded image becomes a photo mosaic. Now, i just using default picture like this
M = imread('mandrill.png');
in my m file, and everyting is working, but i need to do smth that my m file will start working with loaded picture in gui.

Respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by