フィルターのクリア

Lung Segmentation Image Issue

2 ビュー (過去 30 日間)
Nasir Holliday
Nasir Holliday 2020 年 12 月 6 日
回答済み: KALYAN ACHARJYA 2020 年 12 月 7 日
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.

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2020 年 12 月 7 日
The example shown with "3-D MRI chest scan data", might be you have tried with single image 2-D data.

Community Treasure Hunt

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

Start Hunting!

Translated by