tumourkit.preprocessing

tumourkit.preprocessing.centroids2png

Creates images with pixel value 255 at the centroids coordinates.

tumourkit.preprocessing.centroidspng2csv

Merges .centroids.csv and .GT_cells.png into .class.csv files.

tumourkit.preprocessing.geojson2pngcsv

Converts QuPath geojson format into our png <-> csv format.

tumourkit.preprocessing.graph2centroids

Converts the .nodes.csv files into .centroids.csv files.

tumourkit.preprocessing.hovernet2centroids

Script to parse the json format of the centroids of Hovernet into a CSV format with columns X,Y,class The class output format is 0=non-tumour, 1=tumour.

tumourkit.preprocessing.hovernet2geojson

Converts from HoVernet json to QuPath geojson.

tumourkit.preprocessing.png2graph

Computes a graph representation from the images and pngcsv labels.

tumourkit.preprocessing.pngcsv2centroids

Computes centroids csv from png <-> csv labels.

tumourkit.preprocessing.pngcsv2geojson

Converts our png <-> csv format into QuPath geojson format.

tumourkit.preprocessing.pngcsv2graph

Computes a graph representation from the images and pngcsv labels.

tumourkit.preprocessing.remove_uncertain

Removes cells with label uncertain from the annotations.