PartSegCore.color_image

This module contains utils needed for transform multichannel image to RGB

PartSegCore.color_image.add_labels(signatures, args, kwargs, defaults, _fused_sigindex_ref=[None])

Add label to given RGB image. Ift modify original image. :type image: ndarray :param image: RGB image on background :type labels: ndarray :param labels: labels, different label is different num :type overlay: float :param overlay: from 0 to 1 :type only_border: int :param only_border: Draw only border of image :type border_thick: int :param border_thick: if draw only border then thick of this border :type use_labels: ndarray :param use_labels: Which labels should be drawer

Return type:

ndarray

Returns:

changed image

PartSegCore.color_image.calculate_borders(signatures, args, kwargs, defaults, _fused_sigindex_ref=[None])
Return type:

ndarray

PartSegCore.color_image.color_grayscale(signatures, args, kwargs, defaults, _fused_sigindex_ref=[None])

color image channel in respect to cmap array. Array should be in size (resolution, 3)

Return type:

ndarray

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 available in PartSeg.

a