フィルターのクリア

How do I extract the left and right lung regions from a CT Scan image

1 回表示 (過去 30 日間)
Student
Student 2012 年 8 月 10 日
Hello, I've been trying to extract the left and right lung regions from this image using region labeling and various edge detection methods. The touble is that I am completely new to matlab and programming and have been completely unnsucessful. Any help would be greatly appreciated.
Thank you

採用された回答

Sumit Tandon
Sumit Tandon 2012 年 8 月 10 日
編集済み: Sumit Tandon 2012 年 8 月 10 日
There can be several approaches. How about something like this. You can try different values for thresholding, etc and look at the documentation of the functions to see what exactly they are doing.
%%Read image
img = imread('11w3uds.jpg');
%%Crop out unnecessary parts
cropped = img(90:400,40:460);
%%Threshold to isolate lung tissue
thresholded = cropped < 86;
%%Remove artifacts attached to border
clearThresh = imclearborder(thresholded);
%%Remove objects less than 40 pixels in size
imgBigTissue = bwareaopen(clearThresh,100);
imshow(imgBigTissue)

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by