mednet.data.segment.montgomery¶
Montgomery database for lung segmentation.
The standard digital image database for Tuberculosis was created by the National Library of Medicine, Maryland, USA in collaboration with Shenzhen No.3 People’s Hospital, Guangdong Medical College, Shenzhen, China. The Chest X-rays are from
Original resolution (height x width or width x height): 4020x4892 px or 4892x4020 px
Data specifications:
Raw data input (on disk):
PNG images 8 bit grayscale issued from digital radiography machines
Original resolution (height x width or width x height): 4020x4892 px or 4892x4020 px
Samples: 138 images and associated labels
Output image:
Transforms:
Load raw PNG with
PIL
Convert to torch tensor
Final specifications
image: Grayscale, encoded as a single plane tensor, 32-bit floats, original size.
target: A binary mask containing ones where lungs are in the original image, otherwise, zeroes.
mask: Binary, with all ones (no specific mask)
This module contains the base declaration of common data modules and raw-data loaders for this database. All configured splits inherit from this definition.
Module Attributes
Pythonic name to refer to this database. |
|
Key to search for in the configuration file for the root directory of this database. |
Classes
|
Montgomery database for lung segmentation. |
A specialized raw-data-loader for the Montgomery dataset. |
- mednet.data.segment.montgomery.DATABASE_SLUG = 'montgomery'¶
Pythonic name to refer to this database.
- mednet.data.segment.montgomery.CONFIGURATION_KEY_DATADIR = 'datadir.montgomery'¶
Key to search for in the configuration file for the root directory of this database.
- class mednet.data.segment.montgomery.RawDataLoader[source]¶
Bases:
RawDataLoader
A specialized raw-data-loader for the Montgomery dataset.
- class mednet.data.segment.montgomery.DataModule(split_path)[source]¶
Bases:
CachingDataModule
Montgomery database for lung segmentation.
- Parameters:
split_path (
Path
|Traversable
) – Path or traversable (resource) with the JSON split description to load.