allow dictionary image only and test endianness#1669
allow dictionary image only and test endianness#1669rijobro merged 9 commits intoProject-MONAI:masterfrom
Conversation
Signed-off-by: Richard Brown <[email protected]>
Signed-off-by: Richard Brown <[email protected]>
|
@chrisfoulon I think this should work. Might need to be extended to native endian ("=") if the native endianness is big endian (">"). Can you give this a try and let me know? Looks like you were using 0.4.0 before, so there may be other things in the pipeline that have changed in the meantime, e.g., |
|
Note to self, might be this: if data.dtype.byteorder == "=" and sys.byteorder != "little":
data = data.newbyteorder("<") |
Signed-off-by: Richard Brown <[email protected]>
Signed-off-by: Richard Brown <[email protected]>
|
@wyli @Nic-Ma Could anyone help me with the CI error? It's complaining about the use of The |
would swap the skip and expand decorators work? |
Signed-off-by: Richard Brown <[email protected]>
That seems to have worked, thanks! |
Signed-off-by: Richard Brown <[email protected]>
Signed-off-by: Richard Brown <[email protected]>
Fixes #1664.
Description
Image meta data seems to cause a problem when a nifti image s big endian. This means that the dictionary
LoadImagedfails for big endian nifti images, whilstLoadImagedoesn't.This is fixed by recursively traversing the meta data and switching any numpy endianness from ">" to "<".
In this PR I've added the option for
image_onlywithLoadImaged.Status
Ready
Types of changes
./runtests.sh --quick.make htmlcommand in thedocs/folder.