NKI-AI / ahcore

Ahcore is the AI for Oncology core computational pathology toolkit
Apache License 2.0
15 stars 1 forks source link

H5FileImageWriter metadata is wrong #43

Closed jonasteuwen closed 10 months ago

jonasteuwen commented 11 months ago

Describe the bug Metadata is like this: {"mpp": 4.0, "dtype": "uint8", "shape": [328974], "size": [4907, 4965], "num_channels": 328974, "num_samples": 10, "tile_size": [1024, 1024], "tile_overlap": [0, 0], "num_tiles": 25, "grid_order": "C", "mode": "overflow", "is_binary": true, "has_color_profile": true, "color_profile_applied": false} num_channels is incorrect

To Reproduce Write any h5

Expected behavior num_channels is correct. Perhaps also add an image mode rather than num_channels.

jonasteuwen commented 10 months ago

This will be fixed in #22