matlab code for 2D hole filling algorithm

3 views (last 30 days)
Lung parenchyma, airway and background have low CT numbers,so a mean value of two peaks (lung parenchyma, airway and fat) is used to binarize the images. After image binarization, 2D hole filling algorithm is used and the thorax is extracted by searching the largest connected components.

Accepted Answer

Image Analyst
Image Analyst on 27 Apr 2015
Do you have a question? I've given code to extract lungs before - search for it. In the meantime, I attach my demo for extracting the N largest or smallest binary blobs in an image.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!