platipy.imaging.tests package#
Submodules#
platipy.imaging.tests.data module#
- platipy.imaging.tests.data.get_hn_nifti(output_directory='./data/nifti/hn')#
Get some Head and Neck data for testing in Nifti format. If the output_directory already exists no data will be fetched.
- Parameters:
output_directory (str, optional) – Path to store test Lung data. Defaults to “./data/nifti/hn”.
- Returns:
The output directory containing the downloaded data.
- Return type:
str
- platipy.imaging.tests.data.get_lung_dicom(output_directory='./data/dicom')#
Get some Lung data for testing in DICOM format. If the output_directory already exists no data will be fetched.
- Parameters:
output_directory (str, optional) – Path to store test Lung data. Defaults to “./data/dicom”.
- Returns:
The output directory containing the downloaded data.
- Return type:
str
- platipy.imaging.tests.data.get_lung_nifti(output_directory='./data/nifti/lung')#
Get some Lung data for testing in Nifti format. If the output_directory already exists no data will be fetched.
- Parameters:
output_directory (str, optional) – Path to store test Lung data. Defaults to “./data/nifti/lung”.
- Returns:
The output directory containing the downloaded data.
- Return type:
str
platipy.imaging.tests.test_bronchus module#
- platipy.imaging.tests.test_bronchus.assert_bronchus_mask(bronchus_mask)#
Checks that the bronchus mask looks as expected for the tests in this file
- platipy.imaging.tests.test_bronchus.assert_lung_mask(lung_mask)#
Checks that the lung mask looks as expected for the tests in this file
- platipy.imaging.tests.test_bronchus.bronchus_data()#
Gets the data needed for the bronchus tests
- Returns:
Path to Data for bronchus test
- Return type:
pathlib.Path
- platipy.imaging.tests.test_bronchus.test_bronchus_segmentation(bronchus_data)#
Tests the bronchus segmentation algorithm
- platipy.imaging.tests.test_bronchus.test_lung_segmentation(bronchus_data)#
Tests the lung segmentation used as an initial step of bronchus segmentation
platipy.imaging.tests.test_cardiac module#
- platipy.imaging.tests.test_cardiac.cardiac_data()#
Generates the data needed for the cardiac tests
- Returns:
dict – Data for cardiac test
- platipy.imaging.tests.test_cardiac.test_cardiac_service(cardiac_data)#
An end-to-end test to check that the cardiac service is running as expected
- platipy.imaging.tests.test_cardiac.test_cardiac_structure_guided_service(cardiac_data)#
An end-to-end test to check that the cardiac structure guided service is running as expected
platipy.imaging.tests.test_visualiser module#
- platipy.imaging.tests.test_visualiser.nifti_data()#
- platipy.imaging.tests.test_visualiser.test_comparison_overlay_visualisation(nifti_data)#
- platipy.imaging.tests.test_visualiser.test_contour_visualisation(nifti_data)#
- platipy.imaging.tests.test_visualiser.test_scalar_overlay_visualisation(nifti_data)#