segmenting the lung region
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ANUSHA H P
am 10 Jan. 2022
Kommentiert: ANUSHA H P
am 11 Jan. 2022
i have converted the CXR to binary image, my aim is to obtain only those lung region,
i have used the same code as lung segmentation.m posted by @Image Analyst which was off great help, i would like further asisst in extracting only the lung region.
Any help is appreciated. Thankyou
2 Kommentare
Akzeptierte Antwort
Image Analyst
am 10 Jan. 2022
Try
mask = imclearborder(mask); % Get rid of blobs touching the edge of the image.
mask = bwareafilt(mask, 2); % Take the largest 2 of the remaining blobs.
5 Kommentare
Image Analyst
am 10 Jan. 2022
Yes, those are completely different images and will need a different algorithm. I suggest you look at published lung segmentation algorithms here:
- 20.7.2 Lungs, and Lung Cancer Image Analysis
- 20.7.2.1 Chest X-Ray Analysis
- 20.7.2.2 Lung Motion Analysis, Respiration, Breathing
- 20.7.2.3 Pneumonia, Lung Analysis, Flu, COVID
- 20.7.2.4 Emphysema, Lung Analysis
- 20.7.2.5 Airway Tree Structure
- 20.7.2.6 Bronchoscopy Systems, Bronchial Analysis
- 20.7.2.7 Thorax, Thoracic Analysis
- 20.7.2.8 Pulmonary Nodules, Lung Nodules
- 20.7.2.9 Tuberculosis Analysis, Tuberculosis Bacilli
- 20.7.2.10 Ribs, Chest X-Rays
Weitere Antworten (1)
KSSV
am 10 Jan. 2022
rgbImage = imread('https://in.mathworks.com/matlabcentral/answers/uploaded_files/858110/image.jpg') ;
% Removing the extra white background around the image (credit to Image
% Analyst)
grayImage = min(rgbImage, [], 3);
binaryImage = grayImage < 200;
binaryImage = bwareafilt(binaryImage, 1);
[rows, columns] = find(binaryImage);
row1 = min(rows);
row2 = max(rows);
col1 = min(columns);
col2 = max(columns);
% Crop
croppedImage = rgbImage(row1:row2, col1:col2, :);
BW = imbinarize(rgb2gray(croppedImage)) ;
[B,L] = bwboundaries(BW,'noholes');
imshow(label2rgb(L, @jet, [.5 .5 .5]))
hold on
for k = 1:length(B)
boundary = B{k};
plot(boundary(:,2), boundary(:,1), 'w', 'LineWidth', 2)
end
1 Kommentar
Siehe auch
Kategorien
Mehr zu Medical Physics finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

