Filter löschen
Filter löschen

Extracting Slices From Slice Function

4 Ansichten (letzte 30 Tage)
Articat
Articat am 11 Okt. 2019
Beantwortet: prasanth s am 11 Okt. 2019
I have a volume that I am seperating into individual slices, here is the follwing code:
figure,
S = slice(xGrid2,zGrid2,yGrid2,permute(velocityMag./u,[3 2 1]),[5,10,15,20,25],[0],[]);
S(1).EdgeColor = 'none';
S(1).FaceAlpha = 0.8;
S(2).EdgeColor = 'none';
S(2).FaceAlpha = 0.8;
S(3).EdgeColor = 'none';
S(3).FaceAlpha = 0.8;
S(4).EdgeColor = 'none';
S(4).FaceAlpha = 0.8;
colormap('jet');
Is there a way I can select each slice and plot it individually?
Thanks for the help!

Akzeptierte Antwort

prasanth s
prasanth s am 11 Okt. 2019
use the vector slicing to get one slice, Let V is the input volume. e.g
S=V(:,:,1);
use 'imshow' or 'imagesc' functions to view the slice as image

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by