histocartography.utils.draw_utils module

Summary

Functions:

draw_circle

draw_ellipse

draw_large_circle

draw_line

draw_poly

map_value_to_color

name2rgb

rgb

name2rgb(color_name)[source]
map_value_to_color(value, colormap, number_of_colors=256, **kwargs)[source]
draw_ellipse(centroid, draw, fill_col, size=5, outline=(0, 0, 255))[source]
draw_large_circle(centroid, draw)[source]
draw_circle(centroid, draw, radius=5, outline_color='yellow', fill_color='yellow', width=2)[source]
draw_line(source_centroid, dest_centroid, draw, fill_col, line_wid)[source]
draw_poly(xy, draw, outline=None, fill=None)[source]
rgb(minimum, maximum, value, transparency=None)[source]

Reference

If you use histocartography in your projects, please cite the following:

@inproceedings{pati2021,
    title = {Hierarchical Graph Representations for Digital Pathology},
    author = {Pushpak Pati, Guillaume Jaume, Antonio Foncubierta, Florinda Feroce, Anna Maria Anniciello, Giosuè Scognamiglio, Nadia Brancati, Maryse Fiche, Estelle Dubruc, Daniel Riccio, Maurizio Di Bonito, Giuseppe De Pietro, Gerardo Botti, Jean-Philippe Thiran, Maria Frucci, Orcun Goksel, Maria Gabrani},
    booktitle = {https://arxiv.org/pdf/2102.11057},
    year = {2021}
}