[Insight-users] GetOrigin problem?
Bill Lorensen
bill.lorensen at gmail.com
Fri Dec 14 10:49:30 EST 2007
Gabriele,
itkAnalyzeImageIO does not set the origin. I'm not sure if Analyze stores
this information. Perhaps Hans Johnson can comment.
Bill
On Dec 14, 2007 10:38 AM, gabri <tartuz at gmail.com> wrote:
> Hi all,
> I've noticed something strange with the GetOrigin.
> My Images are of Analyze type (hdr+img) files and i can read then
> correctly but after the registration process stops I need to write down
> the result images so, using the resampleImageFilter I apply the
> transform, setted via resampler->SetTranform() .
> I need also that the spacing and origin informations have to be
> conserved so i thought that using resampler->SetOutputOrigin() and
> SetOutputSpacing() this will be done succesfully but this is not real
> infact if I open the input images , using MRICRO, spacing is conserved
> but origin is setted in the OutputImages to [0,0,0]that is not correct.
>
> the problem seems to be also in the ImageFileReader infact if I print
> out the result of fixedImageReader->GetOutput()->GetOrigin() the values
> are still wrongly setted to all zeros .
>
> This happens for all images that I have .
>
> Any suggestions?
>
> Sincerly,
> Gabriele
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20071214/b2930d50/attachment.htm
More information about the Insight-users
mailing list