3D image stack plot in MATLAB

27 ビュー (過去 30 日間)
Vivek
Vivek 2011 年 1 月 28 日
Hi,
I have a 64x64 pixel image for a particular frequency. Like this, I have an image of the same object of 64x64 pixel for a bunch of frequencies. I tried to plot the image in a 3d plot with x&Y axis for pixel info and z-axis for every frequency, but can't plot what I expect.
I would appreciate if some one gives a clue...
Rgds, Vivek

回答 (3 件)

Patrick Kalita
Patrick Kalita 2011 年 1 月 28 日
If you have the Image Processing Toolbox you might want to take a look at montage.

Sean de Wolski
Sean de Wolski 2011 年 1 月 28 日
I would take a look at:
slice

Oscar Hartogensis
Oscar Hartogensis 2011 年 2 月 21 日
You can this using slice3.m from the image3 toolkit, which can be found on the fex: http://www.mathworks.com/matlabcentral/fileexchange/21881-image3
Example:
A = imread('peppers.png');
AA = shiftdim(A,-1); % create extra dimension
AA = permute(AA,[1 3 2 4]); % change dimension order
hold on
for i=1:5
T = [(i-1)*200 0 0 0;0 1 0 0;0 0 1 0; 0 0 0 1];
slice3(AA,T,1,1);
end
set(gca,'ZDir','reverse')
view(25,15);
axis image

カテゴリ

Help Center および File ExchangeGraphics Object Properties についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by