Copying a nonvisible figure causes images to have weird coloring?
이전 댓글 표시
So, I have this code that showed the figure resultsf (which has 'visible' set to 'off'). I copy it because I do not wish for it to be deleted when the user closes the figure window.
global resultsf;
f = figure('Name', 'Results');
copyobj(allchild(resultsf), f);
set(f, 'visible', 'on');
However, the problem is that when I display resultsf by itself (by setting 'visible' to 'on'), the images (grayscale) in the figure display perfectly. But, when I use the above code, the images will have have a coloring to them.
댓글 수: 3
Sean de Wolski
2012년 7월 18일
Any chance you should show what generates resultsf (perhaps with a sample image like cameraman.tif')?
Qingyang
2012년 7월 18일
Qingyang
2012년 7월 18일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Polygons에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!