[Insight-users] *Can* run the example Image5 after building (cvs source)

Luis Ibanez luis.ibanez at kitware.com
Mon, 15 Mar 2004 21:59:10 -0500


Hi Robert,

I agree with you that this would be a nice feature
for figuring out the cause of the exception.

This could be done by having the ImageIOFactory
collect lists of supported extensions, and holding
them in an internal list.

Note however that not all readers are based on
extension. Some of them use magic numbers or
other heuristics in order to determine if the
passed file correspond to its known file format.

The criteria for accepting/rejecting a file is
left to the specific ImageIO object. Some of them
use the extensions, some others don't.  At this
point it is not clear if a uniform mechanism is
possible.



   Regards,


      Luis



-----------------------
Atwood, Robert C wrote:

> Okay, I found that it works with the .mhd/.mha  extension 
> 
> 
> Would it be feasable to have the writer routine create a list of
> 'registered' extension types during compilation -- especially as (if I
> understand correctly) this could vary from build to build depending on
> the available libraries? Then this could be triggered when an 'unknown'
> type is encountered. (The 'sox' sound processing software does something
> like this, the output of sox -h will vary depending upon the available
> sound format libraries.) 
> 
> It's just that this error message is so general, it could be due to file
> permission problem, or anything.
> 
> ******
> Description: itk::ERROR: ImageFileWriter(0x8062ed0): No ImageIO set, or
> none could be created.
> ******
> 
> Thanks for the help
> Robert
> 
> 
> Dr. Robert Atwood
> 
> Dept of Materials
> 
> Imperial College London
> 
> London UK
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>