How to view the title image classification for 3D images?
4 ビュー (過去 30 日間)
I have done trained the deep lerning clasification.
so I want to test one of the data.
testing = niftiread('test.nii');
out = classify(trainedNetwork_1,testing,classoutput);
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 2023 年 9 月 1 日
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
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');
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!