Display precomputed slice object on axes object
이전 댓글 표시
Hi there
I am doing some image processing. To visualize my data (on a gui), I use the slice function. Due to the amount of data, I want to precompute the slice plot before displaying it on an axes object. My idea is, to store the precomputed slice plot handle into an variable and display it later on the axes object (which is meanwhile used for other visualization).
The slice object is generated by:
handles.model = slice(x, y, z, imSeq, loc(1), loc(2), loc(3));
hold on;
colormap(gray);
set(handles.model, 'EdgeColor', 'none');
daspect(ratio);
%...
hold off;
In another part of the gui I want display the precomputed slice object:
% is there something like this? =)
set(handles.axesSlice, 'Data', handles.model)
Of course it is possible to add a second axes onto the gui and change the visibility of it, but it would be nice if I can manage it like I am asking for ;-)
Thank you for your reply, Fabian
댓글 수: 2
SSITS Rayachoti
2012년 6월 12일
Thanks for your inf sir
Let me to know how to extract an image from my files into Mat lab to process it
Walter Roberson
2012년 6월 12일
SSITS, please see imread()
답변 (2개)
Walter Roberson
2012년 6월 12일
0 개 추천
See copyobj()
Note: your slice() routine is going to produce a visible graph unless you specifically make it invisible after your "hold off". And it is going to produce it on whatever the current graphics axis is...
Fabian
2012년 6월 12일
댓글 수: 1
Walter Roberson
2012년 6월 12일
set( allchild(unused), 'Visible', 'off')
Or even easier, plop everything into a new figure, and then just set the figure visibility off.
When the Answers search engine is working better, please search on tag:always-parent and read the advise in my answer (and comments) there.
카테고리
도움말 센터 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!