lcat.segmentation package

Submodules

lcat.segmentation.body module

Segments a body from a CT scan.

lcat.segmentation.body.get_body_envelope(body_mask)[source]

Given a mask representing thresholded lung values, obtain an envelope containing the lung region with no interior holes.

lcat.segmentation.body.get_body_segmentation(scan)[source]

Given a Scan object representing a chest CT scan, return a binary mask representing the region occupied by the body.

lcat.segmentation.body.get_largest_volume(labels)[source]

Return a binary mask equivalent to the component with the largest volumes in the array labels.

lcat.segmentation.body.get_top_value(arr)[source]

Given an ndarray, return the value which occurs most frequently.

lcat.segmentation.lungs module

Authors: Connor Brinton and Scotty Fleming Segment lungs from a chest CT scan.

lcat.segmentation.lungs.get_largest_volume(labels)[source]

Return a binary mask equivalent to the component with the largest volumes in the array labels.

lcat.segmentation.lungs.get_lung_envelope(lung_mask)[source]

Given a mask representing thresholded lung values, obtain an envelope containing the lung region with no interior holes.

lcat.segmentation.lungs.get_lung_segmentation(scan)[source]

Given a Scan object representing a chest CT scan, return a binary mask representing the lungs (not including the air within the lungs).

lcat.segmentation.lungs.get_top_value(arr)[source]

Given an ndarray, return the value which occurs most frequently.

Module contents

Segmentation package of the Lung Cancer Action Team toolkit.