histocartography.preprocessing.utils module¶
Preprocessing utilities
Summary¶
Functions:
Calculates a histogram of a matrix of the values from 0 up to (excluding) nr_values |
|
Loads an image from a given path and returns it as a numpy array |
|
Saves a provided image to a given path. |
- fast_histogram(input_array: numpy.ndarray, nr_values: int) → numpy.ndarray[source]¶
Calculates a histogram of a matrix of the values from 0 up to (excluding) nr_values
- Parameters
x (np.array) – Input tensor
nr_values (int) – Possible values. From 0 up to (exclusing) nr_values.
- Returns
Output tensor
- Return type
np.array
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}
}