MATLAB: Show image independently

guiimageimshow

i was building a program for capturing image from webcam, and show it using imshow(image) but suddenly after the image is captured, the image is shown in the part of gui, what i mean is to show the image independently, help me guys! thx!

Best Answer

imshow displays the image in the current AXES-object. I assume "showing the image independently" means to display it in a new figure. Then:
newFigureH = figure;
newAxesH = axes('Parent', newFigureH);
imshow(rand(100, 100, 3), 'Parent', newAxesH);
Related Question