Info
この質問は閉じられています。 編集または回答するには再度開いてください。
help me Axes show in Gui
2 ビュー (過去 30 日間)
古いコメントを表示
first program don't have axes more than 1 axes
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168008/image.jpeg)
if press start Axes1 show webcam normal but I'm add axes 3 axes in program and press start Webcam show in last axes
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168010/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168011/image.jpeg)
0 件のコメント
回答 (1 件)
Walter Roberson
2017 年 10 月 9 日
Do not do
handles.axes1;
hImage = image( zeros(vidRes(2), vidRes(1), nBands) );
as that is not reliable. Use
hImage = image( zeros(vidRes(2), vidRes(1), nBands), 'Parent', handles.axes1 );
Similarly instead of
axes(handles.axes7);
imshow(myImage);
use
imshow(myImage, 'Parent', handles.axes7);
Better yet would be to use
image(myImage, 'Parent', handles.axes7);
because imshow() changes a number of settings, and can trigger the deletion of axes (although that cannot happen in your circumstances, it is safer to get used to using image() instead of having to worry about whether you might encounter those circumstances.)
3 件のコメント
この質問は閉じられています。
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!