how to get image from axes in other function?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Gytis Raudonius
am 26 Mär. 2016
Kommentiert: Gytis Raudonius
am 26 Mär. 2016
Hi, how i can take image after loaded into gui and take this image to read other function. I add to files so i want to know how to take image from Gui and read to Nuajas.
Thans for answers.
0 Kommentare
Akzeptierte Antwort
Adam
am 26 Mär. 2016
In Naujas, change the first few lines to:
function Naujas( img )
% imshow(img);
i.e. pass the image in as an argument instead of calling your function.
In test pushbutton2_Callback, add the line:
Naujas( image1 );
I haven't looked at any of what the rest of the code does to see whether there are other problems, but that will let you pass the image variable to your function.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!