Official build of the Chest Imaging Platform (CIP)
5.7K
The Chest Imaging Platform (CIP) offers both a software library and a clinical-oriented tool that can enable the development and translation of known and novel quantitative phenotypes in lung diseases, including Chronic Obstructive Pulmonary Disease (COPD), Interstitial Lung Disease (ILD) and Pulmonary Vascular Disease (PVD).
Some algorithms (deep learning ones) require up to 16 GiB RAM memory.
**Linux**: Default settings
The container has one mount point /host. The local folder mapped to the mount point is used to feed input data to the container and to store output data.
Download:
$ docker pull acilbwh/chestimagingplatform
Create the container:
$ docker run -ti --name your_container_name -v your_local_folder:/host -d acilbwh/chestimagingplatform
Attach to the container CLI:
$ docker exec -ti your_container_name /bin/bash
All CLIs from the ChestImagingPlatform can be executed interactively by calling docker exec: Notice that all input files must be in the mapped local folder used to create the container.
$ docker exec -ti your_container_name CLI_command [args]
$ docker exec -ti your_container_name python path_to_pythonScript [args]
$ docker exec -ti your_container_name bash path_to_bashScript [args]This example converts a CT scan in DICOM format to NRRD format, that is the input format used in CIP's CLIs.
$ docker exec -ti your_container_nam> ConvertDicom --dir path_to_DICOM_folder -o output_file.nrrd
This examples extract a lung mask from an input CT and compute parenchyma phenotypes:
$ docker exec -ti your_container_name GenerateMedianFilteredImage -i your_input_ct.nrrd -o your_filtered_ct.nrrd
$ docker exec -ti your_container_name GeneratePartialLungLabelMap --ict your_filtered_ct.nrrd -o your_partialLungLabelMap.nrrd
$ docker exec -ti your_container_name python /ChestImagingPlatform/cip_python/phenotypes/parenchyma_phenotypes.py --in_ct your_input_ct.nrrd --in_lm your_partialLungLabelMap.nrrd --cid your_input_ct_name -r chest_regions -t chest_types --out_csv your_parechyma_phenotypes_file.csv
This example extract a lung mask from an input CT using a deep learning approach combining an axial and a coronal model.
$ docker exec -ti your_container_name python /ChestImagingPlatform/cip_python/dcnn/projects/lung_segmenter/lung_segmenter_dcnn.py --i your_input_ct.nrrd --t combined --o your_partialLungLabelMap.nrrd
Quick DCNN segmentation: Using downsampling and only one plane the segmentation process can be much faster, but the output labelmap could be less accurate in some cases. The following example shows how to use the quick approach:
$ docker exec -ti your_container_name python /ChestImagingPlatform/cip_python/dcnn/projects/lung_segmenter/lung_segmenter_dcnn.py --i your_input_ct.nrrd --t coronal --n 2 --o your_partialLungLabelMap.nrrd
Pull local_histogram_pipeline.sh script from CIPDocker repository
$ docker exec -ti your_container_name bash path_to_local_histogram_pipeline.sh -i your_input_ct.nrrd -m your_partialLungLabelMap.nrrd
This example take a low dose CT as an input and generate a filtered image simulating a high dose scan.
$ docker exec -ti your_container_name python /ChestImagingPlatform/cip_python/dcnn/projects/low_to_high_dose_filter/low_to_high_dose_filter_dcnn.py --i your_input_LD_scan.nrrd --o your_output_HD_scan.nrrd
Where to get help CIP main page, mailing-list
Where to file issues CIP Github issue page
Content type
Image
Digest
sha256:02d800ee5…
Size
2.8 GB
Last updated
over 3 years ago
docker pull acilbwh/chestimagingplatformPulls:
33
Last week