This repository uses pre-processing techniques such as region growing, erosion and dilation to crop the lungs from chest X-ray images.
Python 3 +
numpy 1.18 +
opencv-python 4.x +
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.
- Soroush Taslimi - https://github.com/soroushtaslimi
This project is licensed under the MIT License - see the LICENSE.md file for details.