How to view the title image classification for 3D images?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1083050/image.png)
the function of imshow3D was attached.
0 Commenti
Risposte (1)
Varun
il 1 Set 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
0 Commenti
Vedere anche
Categorie
Scopri di più su Image Data Workflows in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!