Changing Matlab toolbox sliceViewer properties

7 ビュー (過去 30 日間)
Aidan Shek
Aidan Shek 2020 年 1 月 23 日
回答済み: Ganesh Regoti 2020 年 1 月 31 日
Hi I have a 3d image that I would like to view inbetween the layers, I am trying to use the sliceViewer tool: https://uk.mathworks.com/help/images/ref/sliceviewer.html
I am able to load the tool but i am unsure how to change the properties so that I could view the slices from the Y direction and the X direction instead of the Z direction as is the default value.
Additionally in the same kind of question how would i change the properties of the orthosliceViewer: https://uk.mathworks.com/help/images/ref/orthosliceviewer.html
I would like to view the different layers instead of the default at the midplane.

採用された回答

Ganesh Regoti
Ganesh Regoti 2020 年 1 月 31 日
Hi,
For Matlab functions, the arguments are provided in the format of name-value pairs. You can refer to examples in the following doc
Here is small code-snippet to change the view of sliceViewer
load mristack
cmap = parula(256);
s = sliceViewer(mristack,'Colormap',cmap,'SliceDirection','Y') %SliceDirection is the property that changes the view of image slices
Hope this helps!

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange3-D Volumetric Image Processing についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by