PartSegCore.color_image¶
This module contains utils needed for transform multichannel image to RGB
- PartSegCore.color_image.add_labels(signatures, args, kwargs, defaults)¶
Add label to given RGB image. Ift modify original image. :param image: RGB image on background :param labels: labels, different label is different num :param overlay: from 0 to 1 :param only_border: Draw only border of image :param border_thick: if draw only border then thick of this border :param use_labels: Which labels should be drawer :return: changed image
- PartSegCore.color_image.calculate_borders(signatures, args, kwargs, defaults)¶
- PartSegCore.color_image.color_grayscale(signatures, args, kwargs, defaults)¶
color image channel in respect to cmap array. Array should be in size (resolution, 3)
- PartSegCore.color_image.resolution¶
Constraint equal to 1024. This is information with which accuracy the colormaps are prepared. 1024 means that there will interpolated to 1024 values.
- PartSegCore.color_image.default_colormap_dict¶
Dict with default colormaps avaliable in PartSeg.
a