vampire.coloring.color_img#
- vampire.coloring.color_img(img, background=0, cmap=None, background_color=None)[source]#
Plot cluster-labeled images.
- Parameters:
- imgndarray
Cluster-labeled image.
- backgroundint, optional
Background value. Default 0.
- cmapstr, optional
Matplotlib colormap name. https://matplotlib.org/stable/tutorials/colors/colormaps.html
- background_colorstr, optional
Color name for background.
- Returns:
- figmatplotlib.pyplot.figure
- axmatplotlib.axes.Axes
- colorsndarray
Colors used to color each cluster