フィルターのクリア

How to view the title image classification for 3D images?

4 ビュー (過去 30 日間)
mohd akmal masud
mohd akmal masud 2022 年 7 月 30 日
回答済み: Varun 2023 年 9 月 1 日
Dear all,
I have done trained the deep lerning clasification.
so I want to test one of the data.
%testing
testing = niftiread('test.nii');
out = classify(trainedNetwork_1,testing,classoutput);
figure, imshow3D(testing)
title (string(out))
How to view the title classification for 3D images? (as example picture as attached in red box)
becuse my command the title not appear
the function of imshow3D was attached.

回答 (1 件)

Varun
Varun 2023 年 9 月 1 日
Hello,
I went through the “imshow3D.m” file you had attached and used the example image “brain.nii” from this documentation (https://www.mathworks.com/help/images/ref/niftiread.html#mw_394ad19d-ffdb-4133-b32a-5e0bf793e444) to test it out. I observed that in line 171, the “position” argument of the axes is set to [0,0.2,1,0.8], which causes the “title” to disappear from view, as the image gets displayed over it. Changing the value of the “position” argument to [0,0.2,1,0.7] should fix the issue for you. So, in the code, we have
clf
axes('position',[0,0.2,1,0.7]), imshow(squeeze(Img(:,:,S,:)), [Rmin Rmax])
For reference, I am attaching the “brain.nii” image after I tweaked the “position” argument in your function. Here’s my sample code:
V = niftiread('brain.nii');
testing = niftiread('brain.nii');
figure
imshow3D(testing)
title ("hello")
You may refer to the following documentation to learn more about “axes” and how the “position” argument affects it: https://www.mathworks.com/help/matlab/ref/axes.html#buzt7yy_sep_shared-Position .
Hope this helps!
Thanks,
Varun

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by