This might make masks be interpreted differently to ANTs, if they are not binarized already. For example, if one used a FreeSurfer aparc+aseg type mask here ( subcortex labels 1-48(ish), cortex 1000-1100(ish) ), some labels will be zeroed out in this rescaling process.
How about we just binarize first and then cast to char? Happy to work on a PR for this.
While reviewing #450, I saw this
https://github.com/ANTsX/ANTsPy/blob/8f5fa941c83515154d6125cd4bcb1636e8813768/ants/registration/interface.py#L396-L400
This might make masks be interpreted differently to ANTs, if they are not binarized already. For example, if one used a FreeSurfer aparc+aseg type mask here ( subcortex labels 1-48(ish), cortex 1000-1100(ish) ), some labels will be zeroed out in this rescaling process.
How about we just binarize first and then cast to char? Happy to work on a PR for this.