oncoray / mirp

Medical Image Radiomics Processor
https://oncoray.github.io/mirp/
European Union Public License 1.2
51 stars 14 forks source link

Writing mask files throws an error #50

Closed alexzwanenburg closed 8 months ago

alexzwanenburg commented 8 months ago

When masks are exported to NIfTI, an error is thrown because the dtype of the run-length-encoded mask does not exist.

The write method was directly ported from version 1.3.0, where it was tested as part of the IBSI 2 compliance checks. However, because version 2 enabled return of images and masks as return values, these are no longer written. There is currently no test that tests writing images, masks and feature files to a file system.

@LukasDuenger

alexzwanenburg commented 8 months ago

Done.