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개)
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.
댓글 수: 0
참고 항목
카테고리
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!