[Insight-developers] Analyze 6.5 file format error -- proper
handling?
Bill Lorensen
bill.lorensen at gmail.com
Fri Apr 7 17:37:05 EDT 2006
Probably throw an exception. The exception could explain how to fix the
problem using OrientationImageFilter. Another possibilioty is to put a mode
in the writer to apply the OrientationImageFilter if the orientation is
incorrect.
Bill
On 4/7/06, Kent Williams <kent at psychiatry.uiowa.edu> wrote:
>
> The Analyze image file format only supports 3 different orientations
> (out of a possible 48). Currently if you feed it an image oriented other
> than those three ways to write to disk, it silently writes it out with a
> valid (but incorrect) orientation code.
>
> Hans Johnson (my boss) suggested that it should be an error to try and
> write a file out with a misleading orientation code. But I'm not sure
> what the right solution should be:
>
> 1. Print an error message and raise an exception?
> 2. Print a warning message, and write out the incorrect file?
> 3. ???
>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.itk.org/mailman/private/insight-developers/attachments/20060407/53fc73e9/attachment.htm
More information about the Insight-developers
mailing list