m3resp.PixelMaskCollection#

class m3resp.PixelMaskCollection(items=<factory>)[source]#

An ordered collection of pixel masks, such as lung-space masks.

Variables:

items (list[m3resp.data.pixel_maps.PixelMask]) – PixelMask objects in insertion order.

Parameters:

items (list[PixelMask])

Methods

add

Add and return the mask, keeping each object once in insertion order.

for_name

Return masks with this exact name, in insertion order.

Attributes

add(mask)[source]#

Add and return the mask, keeping each object once in insertion order.

Parameters:

mask (PixelMask)

Return type:

PixelMask

for_name(name)[source]#

Return masks with this exact name, in insertion order.

Parameters:

name (str)

Return type:

list[PixelMask]

items: list[PixelMask]#