[Insight-users] Examples/ImageRegistration8.cxx

Luis Ibanez luis.ibanez at kitware.com
Thu Mar 15 20:38:44 EST 2007


Hi Christian,

This is an unfortunate consequence of doing the "right thing"

The analyze format has certain ambiguities.
At some point ITK Analyze readers where not paying attention
to the anatomical orientation of the images strored in files.

That was fixed recently, and as part of the fix, it was stablished
that Analyze could only represent three out of the multiple
combinations of anatomical orientations.

Unfortunately, there are many Analyze files out there that
do not respect this convention.

What you may want to do is to "silence" these error message
in your local copy of ITK.... but please do so, ONLY if you are
working in research that do not results in any patient treatment.

Note that in February 26, a change was made in the itkAnalyzeIO.cxx
class for reducing this problem from throwing an exception to simply
print out a warning.

http://www.itk.org/cgi-bin/viewcvs.cgi/Code/IO/itkAnalyzeImageIO.cxx?root=Insight&r1=1.76&r2=1.77


If you download ITK 3.2, that change will already be included,
and you will only get the warning error message.


      Regards,


               Luis


=====================================
On 3/14/07, Christian Marshall Rieck <rieck at stud.ntnu.no> wrote:
> When I run this example the system generates an error.
> I call it with the files from IBSR (the ones in analyze format) and get
> this result:
> (called with ./program 1_24.hdr 2_4.hdr result.hdr)
>
> [...]
> 60   1.37098e+007   [-0.0322088, 0.0135614, -0.0103073, 0.218771, 21.2587,
> 12.4789]
> 61   1.37099e+007   [-0.0322262, 0.0135719, -0.0103217, 0.218584, 21.2587,
> 12.479]
>
>
> Result =
>  versor X      = -0.0322262
>  versor Y      = 0.0135719
>  versor Z      = -0.0103217
>  Translation X = 0.218584
>  Translation Y = 21.2587
>  Translation Z = 12.479
>  Iterations    = 63
>  Metric value  = 1.37098e+007
> Matrix =
> 0.999419 0.0197549 0.027791
> -0.0215044 0.99771 0.0641295
> -0.0264605 -0.0646898 0.997555
>
> Offset =
> [-4.50135, 17.1409, 21.801]
>
> itk::ExceptionObject (00F8F540)
> Location: "void __thiscall
> itk::AnalyzeImageIO::WriteImageInformation(void)"
> File: \Programfiler\itk\InsightToolkit-3.0.0\Code\Io\itkAnalyzeImageIO.cxx
> Line: 1180
> Description: itk::ERROR: AnalyzeImageIO(015B5B90): ERROR: Analyze 7.5 File
> Format Only Allows RPI, PIR, and RIP Orientation	
>
>
> Any idea of how to fix this?
>
> Christian Marshall Rieck
> 93 49 54 75
> ----------------------------------------
> All the good things in life are
> fattening, cancer-causing or NP-complete.
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list