-
Is there a way for me to train histogram standardization using a series of masks that define which pixels are to be used per input? Right now the function accepts a single mask path while also accepting a list of mri paths. It seems weird as every image corresponds to its own mask, so I would expect to be inputting a list of paths in the mask case as well. But when I do it I get a TypeError: expected str, bytes or os.PathLike object, not list
What am I missing here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, @Linardos. The implementation of this transform is a bit clunky, it's one of the first in the library.
What you're asking for is not supported at the moment, but it shouldn't be difficult to implement and you're welcome to submit a PR for that. Here's the relevant bit of code: Changes needed:
The docstring says that |
Beta Was this translation helpful? Give feedback.
Hi, @Linardos. The implementation of this transform is a bit clunky, it's one of the first in the library.
What you're asking for is not supported at the moment, but it shouldn't be difficult to implement and you're welcome to submit a PR for that. Here's the relevant bit of code:
https://github.com/fepegar/torchio/blob/d1c7b8fbef5bc14d232961c1dfc26411b9de3389/torchio/transforms/preprocessing/intensity/histogram_standardization.py#L157-L166
Changes needed: