/lung_image_preprocessing

This repository uses preprocessing technics such as image growing and erosion and dilation to crop the lungs from chest X-ray images.

Primary LanguagePythonMIT LicenseMIT

lung_image_preprocessing

This repository uses pre-processing techniques such as region growing, erosion and dilation to crop the lungs from chest X-ray images.

Prerequisites

Python 3 +
numpy 1.18 +
opencv-python 4.x +

Running the tests

run main.py located in ./code/ directory

python main.py

Lung images are read from ./data/ directory

After running the code the results are stored in ./Results/ directory. The green boundary shows a small part of the lung region after erosion. The blue rectangle is used to locate the lungs.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details.