Lung Segmentation Image Issue

2 vues (au cours des 30 derniers jours)
Nasir Holliday
Nasir Holliday le 6 Déc 2020
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.

Réponses (1)

KALYAN ACHARJYA
KALYAN ACHARJYA le 7 Déc 2020
The example shown with "3-D MRI chest scan data", might be you have tried with single image 2-D data.

Catégories

En savoir plus sur 3-D Volumetric Image Processing 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