Lung Segmentation Image Issue

2 visualizaciones (últimos 30 días)
Nasir Holliday
Nasir Holliday el 6 de Dic. de 2020
Respondida: KALYAN ACHARJYA el 7 de Dic. de 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.

Respuestas (1)

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

Categorías

Más información sobre 3-D Volumetric Image Processing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by