Generate a QuadTree from a lung image and mask and calculate its 'QtD'. It uses the DICOM lung image and a JPG mask image as inputs.
pip install numpy scipy pydicom
git clone https://github.com/tdewolff/lung_quadtree
cd lung_quadtree
python QtD.py
You can change parameters in the top section within QtD.py
.