Hi,
I'm not totally sure I understand the question, but if you want to just mask off regions in the image you could simply merge the mask information to the alpha channel of the image. ImageItem pixel data (for a single image frame) can be four dimensional (R, G, B, A), where A is the alpha/transparency. Set the A channel according to your mask (0 = transparent, 255 = opaque). For the time series data you'll just push that dimension along one. You'll need to play with the various numpy slicing/concatenation methods to merge the data correctly.
As a very simple example, if you look at the ImageView example, you can insert/change the following and the images will have that alpha/mask info. This is a poor example since every pixel has the same alpha=128, but it should give you the idea:
dataAlpha = 128*np.ones_like(dataRed)
data = np.concatenate(
(dataRed[:, :, :, np.newaxis], dataGrn[:, :, :, np.newaxis], dataBlu[:, :, :, np.newaxis], dataAlpha[:, :, :, np.newaxis]), axis=3
)
Patrick