bebi103.image.im_merge
- bebi103.image.im_merge(im_0, im_1, im_2=None, im_0_max=None, im_1_max=None, im_2_max=None, im_0_min=None, im_1_min=None, im_2_min=None, cmy=True)
Merge channels to make RGB image.
- Parameters
im_0 (array_like) – Image represented in first channel. Must be same shape as im_1 and im_2 (if not None).
im_1 (array_like) – Image represented in second channel. Must be same shape as im_1 and im_2 (if not None).
im_2 (array_like, default None) – Image represented in third channel. If not None, must be same shape as im_0 and im_1.
im_0_max (float, default max of inputed first channel) – Maximum value to use when scaling the first channel. If None, scaled to span entire range.
im_1_max (float, default max of inputed second channel) – Maximum value to use when scaling the second channel
im_2_max (float, default max of inputed third channel) – Maximum value to use when scaling the third channel
im_0_min (float, default min of inputed first channel) – Maximum value to use when scaling the first channel
im_1_min (float, default min of inputed second channel) – Minimum value to use when scaling the second channel
im_2_min (float, default min of inputed third channel) – Minimum value to use when scaling the third channel
cmy (bool, default True) – If True, first channel is cyan, second is magenta, and third is yellow. Otherwise, first channel is red, second is green, and third is blue.
- Returns
output – RGB image.
- Return type
array_like, dtype float, shape (*im_0.shape, 3)