The example shown with "3-D MRI chest scan data", might be you have tried with single image 2-D data.
Lung Segmentation Image Issue
2 次查看(过去 30 天)
显示 更早的评论
Hi,
My original image is 202x287x3 and I am folliowng the code on the website: https://www.mathworks.com/help/images/segment-lungs-from-3-d-chest-mri-data.html
clc;
clear all;
close all;
I = imread('C1.jpg');
%figure
%imshow(I)
V = im2single(I); %converts the scan data from int16 to single for range [0,1]
%volumeViewer(V)
XY = V(:,:,1);
XZ = squeeze(V(101,:,:)); I chose 101 because that is half of 202; the website original image was 512 and used 256)
figure
imshow(XY,[],'Border','tight')
imshow(XZ,[],'Border','tight')
For XY, I get an image but for XZ I keep getting the attached image and I am not sure why. This occurs whether or not I put the squeeze or not. I need to perform imageSegmentation on the image and I dont know why this keeps happening.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 3-D Volumetric Image Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!