merge_censor_masks

bidsaid.qc.merge_censor_masks(censor_masks)[source]

Merge multiple censor masks.

A volume is kept (1) only if it is NOT censored in ALL input masks.

Parameters

censor_masks: Iterable[NDArray]

An iterable of binary censor masks, all with the same length.

Returns

NDArray

Merged binary mask where 1 = keep, 0 = censor.