Author: Mathieu Coursolle (---.nimh.nih.gov)
Date: 04-21-09 09:54
Hi,
I am writing an application in which I need to load NIfTI file.
By looking at the NIfTI lib (http://nifti.nimh.nih.gov/pub/dist/src/niftilib/nifti1_io.c),
it seems like the library only accepts NIfTI files with lower case extensions.
Is that a bug, or a feature ?
If I understood correctly, a NIfTI file with the .NII extension is not considered a NIfTI file ?
I know this is unlikely, but if for some reason a 3rd party converter, or a user manipulates
the file in such a way that the extension gets upper case, the current implementation assumes
it is not valid anymore.
I would then suggest to modify nifti1_io.c to use strcasecmp instead of strcmp to compare the extension.
Thanks,
Mathieu
____________________
Mathieu Coursolle, M.Ing.
Rogue Research Inc.
www.rogue-research.com
|
|