mask_rgb#

cellpose_omni.plot.mask_rgb(masks, colors=None)[source]#

masks in random rgb colors

Parameters
  • masks (int, 2D array) -- masks where 0=NO masks; 1,2,...=mask labels

  • colors (int, 2D array (optional, default None)) -- size [nmasks x 3], each entry is a color in 0-255 range

Returns

RGB -- array of masks overlaid on grayscale image

Return type

uint8, 3D array