Segmenting lung nodules from Chest X-ray images

조회 수: 12 (최근 30일)
Rida Memon
Rida Memon 2020년 3월 30일
답변: Image Analyst 2022년 1월 4일
This is my code. It is almost accurately segmenting out the lung regions from chest x-ray images. But i need to write a logic that also segments out those blobs only that are candidate nodules. I also have ground truth for the nodule's size and location in the image.
clear; clc; close all;
%% Loading images
Threshold = 36;
raw_x_ray='JPCLN014.png';
I=imread(raw_x_ray);
figure(101);
imshow(I);
colormap(gray);
title('Grayscale X-Ray');
I=wiener2(I, [5 5]);
figure(102);
subplot(2,1,1);
imshow(I);
subplot(2,1,2);
imhist(I, 256);
a_thresh = I >= Threshold; % set this threshold
[labelImage, numberOfBlobs] = bwlabel(a_thresh);
props = regionprops(a_thresh,'all');
sortedSolidity = sort([props.Solidity], 'descend');
SB = sortedSolidity(1);
if SB == 1
binaryImage = a_thresh; figure(103);
imshow(binaryImage); colormap(gray);
The image needs to be flipped first. Nodule's size is 20mm for this image, (569,717) are the coordinates, the nodule is in the right upper lobe (S3) and is malignant (lung cancer diagnosed).

답변 (1개)

Image Analyst
Image Analyst 2022년 1월 4일

카테고리

Help CenterFile Exchange에서 LabVIEW에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by