vuba.Mask
- class vuba.Mask(mask)[source]
Convenience class for performing segmentation to a mask.
Maskenables the creation of a callable that will performbitwise_andon a given frame with the mask supplied at initiation. This can be useful for performing the same operation on a series of frames.- Parameters
mask (ndarray) – Mask to segment frame(s) to.
- Returns
mask – Class object with
__call__method that performsbitwise_andwith the mask provided at initiation.- Return type
- Raises
ValueError – If the supplied image is not grayscale.
See also
Methods
__init__(mask)