linearcolormap

LinearColormap

class skimage.viewer.utils.LinearColormap(name, segmented_data, **kwargs) [source]

Bases: matplotlib.colors.LinearSegmentedColormap

LinearSegmentedColormap in which color varies smoothly.

This class is a simplification of LinearSegmentedColormap, which doesn’t support jumps in color intensities.

Parameters:

name : str

Name of colormap.

segmented_data : dict

Dictionary of ‘red’, ‘green’, ‘blue’, and (optionally) ‘alpha’ values. Each color key contains a list of x, y tuples. x must increase monotonically from 0 to 1 and corresponds to input values for a mappable object (e.g. an image). y corresponds to the color intensity.

__init__(name, segmented_data, **kwargs) [source]
doc_scikit_image
2017-01-12 17:21:48
Comments
Leave a Comment

Please login to continue.