hnu-digihealth / patho-pix

GNU General Public License v3.0
2 stars 0 forks source link

Common Interface for Modules #4

Closed DanielHieber closed 1 month ago

DanielHieber commented 1 month ago

the input for each step (i.e., task within the pipeline) should have one input param, i.e, the image to be processed. The image can be the full image or a tile - this basically does not really matter.

Additionally, there should be a globally accessible "meta data store" (i.e., dictionary) where all information about the tiles can be stored (i.e., whether it is tumor or non-tumor, ...)

This store can be accessed dynamically from all steps

DanielHieber commented 1 month ago

def someFunc(img: np.array, meta_data: dict)

img: 3d numpy array mit den Bildinfos meta_data: dict {slide_id, tile_id, row, column, size, tissue_coverage, label_to_tissue, labels, artefact}