Skip to content

Neuroimaging Informatics Technology Initiative

Sections
Personal tools
You are here: Home
phorum - NIfTI Message Board - NIfTI extension case
NIfTI Message Board

 New Topic  |  Go to Top  |  Go to Topic  |  Search   Previous Message  |  Next Message 
 NIfTI extension case
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

 Reply To This Message  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 NIfTI extension case  
Mathieu Coursolle 04-21-09 09:54 
 Re: NIfTI extension case  
rick reynolds 04-21-09 16:15 
 Re: NIfTI extension case  new
Cinly OOI 04-22-09 09:47 
 Re: NIfTI extension case  
rick reynolds 04-22-09 18:00 
 Re: NIfTI extension case  new
Cinly OOI 04-23-09 08:49 
 Re: NIfTI extension case  
Cinly OOI 04-24-09 06:37 
 Re: NIfTI extension case  
rick reynolds 04-27-09 19:03 
 Re: NIfTI extension case  
Cinly OOI 04-28-09 10:25 
 Re: NIfTI extension case  new
Cinly OOI 04-28-09 10:27 
 Re: NIfTI extension case  
rick reynolds 04-28-09 12:48 
 Re: NIfTI extension case  
Cinly OOI 04-28-09 13:41 
 Re: NIfTI extension case  
rick reynolds 04-28-09 13:47 


 New Topic  |  Go to Top  |  Go to Topic  |  Search 
 Reply To This Message
 Your Name:
 Your E-mail:
 Subject:
   
 

Powered by Plone

phorum.org

This site conforms to the following standards: