[vtkusers] Question for relationship between ITK and VTK coordination system
Dženan Zukić
dzenanz at gmail.com
Mon Jan 24 09:46:27 EST 2011
Thanks for suggestions, but with my current organization the file is only in
memory, and itk::ImageToVTKImageFilter does not have such an option. As the
matter of fact, the origin in the lower left corner is not a problem, but
rather VTK's ignorance about image's orientation (direction cosines).
ITK_IMAGE_BEHAVES_AS_ORIENTED_IMAGE
effectively controls direction cosines (and perhaps translation), and when
it is off there is no visual discrepancy.
Regards,
Dženan
2011/1/24 Lodron, Gerald <Gerald.Lodron at joanneum.at>
> The readers/writers in vtk have the binary FileLowerLeftOn<http://www.vtk.org/doc/nightly/html/classvtkImageReader2.html#a3a959f0dbfb4ff4b0227317941d7ea19>() function.
> Set them to on...
>
> ------------------------------
> *Von:* vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] *Im
> Auftrag von *Dženan Zukic
> *Gesendet:* Montag, 24. Januar 2011 15:28
> *An:* Wonsup LEE
> *Cc:* vtkusers at vtk.org
> *Betreff:* Re: [vtkusers] Question for relationship between ITK and VTK
> coordination system
>
> I am facing the same problem. If the settings during configuration of ITK
> in CMake is are left at default, the coordinates differ a lot.
> If ITK_IMAGE_BEHAVES_AS_ORIENTED_IMAGE is set to false, then coordinates
> match (but then the patient orientation is lost).
>
> And by coordinates, I mean the ones received from calls
> to TransformIndexToPhysicalPoint, TransformPhysicalPointToContinuousIndex
> and companions.
>
> To obtain vtkImage I am using ImageToVTKImageFilter. Any help on this?
>
> Regards,
> Dženan
>
> On Fri, Jan 21, 2011 at 01:33, Wonsup LEE <mcury at postech.ac.kr> wrote:
>
>>
>> Hello anyone,
>>
>> I wonder how I can adjust ITK coordination to VTK coordination.
>> I got information from CT images and applied some algorithms to CT data
>> using ITK.
>> Using ITK functions, I could handle each pixels of the CT image (e.g., 512
>> x
>> 512 pixel image).
>> And then I visualized the result using VTK. Also I visualized CT images
>> using VTK directly.
>> However, even I used same CT images, but the ITK result and VTK result
>> were
>> different according to coordination.
>>
>> So, what I'm asking is how I can transform ITK coordinate to VTK's one.
>> I tried to search this issues but I cannot find informative article.
>> Is there an mathematical relationship between ITK and VTK, or any
>> function?
>> Please answer how to calculate or how to use functions for coordination.
>>
>> Thank you very much.
>>
>> Best regards,
>> LEE
>>
>> --
>> View this message in context:
>> http://vtk.1045678.n5.nabble.com/Question-for-relationship-between-ITK-and-VTK-coordination-system-tp3350578p3350578.html
>> Sent from the VTK - Users mailing list archive at Nabble.com.
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110124/799ddac9/attachment.htm>
More information about the vtkusers
mailing list