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

1 vue (au cours des 30 derniers jours)
mohd akmal masud
mohd akmal masud le 30 Juil 2022
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.

Réponses (1)

Varun
Varun le 1 Sep 2023
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

Catégories

En savoir plus sur Image Data Workflows dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by