histocartography.preprocessing.stats module

Summary

Classes:

GraphDiameter

StatsComputer

SuperpixelCounter

class StatsComputer(save_path: Union[None, str, pathlib.Path] = None, precompute: bool = True, link_path: Union[None, str, pathlib.Path] = None, precompute_path: Union[None, str, pathlib.Path] = None)[source]

Bases: histocartography.pipeline.PipelineStep

mkdir()pathlib.Path[source]

Create path to output files

precompute(link_path: Union[None, str, pathlib.Path] = None, precompute_path: Union[None, str, pathlib.Path] = None)None[source]

Creates the file to write to and write the file header

Parameters
  • link_path (Union[None, str, Path], optional) – Ignored. Defaults to None.

  • precompute_path (Union[None, str, Path], optional) – Path to the file header. If None is provided it uses self.save_path. Defaults to None.

class GraphDiameter(save_path: Union[None, str, pathlib.Path] = None, precompute: bool = True, link_path: Union[None, str, pathlib.Path] = None, precompute_path: Union[None, str, pathlib.Path] = None)[source]

Bases: histocartography.preprocessing.stats.StatsComputer

class SuperpixelCounter(save_path: Union[None, str, pathlib.Path] = None, precompute: bool = True, link_path: Union[None, str, pathlib.Path] = None, precompute_path: Union[None, str, pathlib.Path] = None)[source]

Bases: histocartography.preprocessing.stats.StatsComputer

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}
}