Thanks for suggestions, but with my current organization the file is only in memory, and itk::<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">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). </span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">ITK_IMAGE_BEHAVES_AS_ORIENTED_IMAGE effectively controls direction cosines (and perhaps translation), and when it is off there is no visual discrepancy.</span><div>
<br></div><div>Regards,</div><div>Dženan<br><br><div class="gmail_quote">2011/1/24 Lodron, Gerald <span dir="ltr"><<a href="mailto:Gerald.Lodron@joanneum.at">Gerald.Lodron@joanneum.at</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Verdana">The readers/writers in vtk have the binary <a href="http://www.vtk.org/doc/nightly/html/classvtkImageReader2.html#a3a959f0dbfb4ff4b0227317941d7ea19" target="_blank"><font size="3" face="Times New Roman">FileLowerLeftOn</font></a><font color="#000000" size="3" face="Times New Roman"> () </font>function. Set them to
on...</font></span></div><br>
<div dir="ltr" lang="de" align="left">
<hr>
<font size="2" face="Tahoma"><b>Von:</b> <a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>
[mailto:<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>] <b>Im Auftrag von </b>Dženan
Zukic<br><b>Gesendet:</b> Montag, 24. Januar 2011 15:28<br><b>An:</b> Wonsup
LEE<br><b>Cc:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br><b>Betreff:</b> Re: [vtkusers] Question
for relationship between ITK and VTK coordination system<br></font><br></div><div><div></div><div class="h5">
<div></div>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).
<div><br></div>
<div>And by coordinates, I mean the ones received from calls
to TransformIndexToPhysicalPoint, TransformPhysicalPointToContinuousIndex
and companions.<br><br></div>
<div>To obtain vtkImage I am using ImageToVTKImageFilter. Any help on
this?</div>
<div><br></div>
<div>Regards,</div>
<div>Dženan</div>
<div><br>
<div class="gmail_quote">On Fri, Jan 21, 2011 at 01:33, Wonsup LEE <span dir="ltr"><<a href="mailto:mcury@postech.ac.kr" target="_blank">mcury@postech.ac.kr</a>></span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote"><br>Hello anyone,<br><br>I wonder how I can adjust ITK
coordination to VTK coordination.<br>I got information from CT images and
applied some algorithms to CT data<br>using ITK.<br>Using ITK functions, I
could handle each pixels of the CT image (e.g., 512 x<br>512 pixel
image).<br>And then I visualized the result using VTK. Also I visualized CT
images<br>using VTK directly.<br>However, even I used same CT images, but the
ITK result and VTK result were<br>different according to
coordination.<br><br>So, what I'm asking is how I can transform ITK coordinate
to VTK's one.<br>I tried to search this issues but I cannot find informative
article.<br>Is there an mathematical relationship between ITK and VTK, or any
function?<br>Please answer how to calculate or how to use functions for
coordination.<br><br>Thank you very much.<br><br>Best
regards,<br>LEE<br><br>--<br>View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Question-for-relationship-between-ITK-and-VTK-coordination-system-tp3350578p3350578.html" target="_blank">http://vtk.1045678.n5.nabble.com/Question-for-relationship-between-ITK-and-VTK-coordination-system-tp3350578p3350578.html</a><br>
Sent
from the VTK - Users mailing list archive at
Nabble.com.<br>_______________________________________________<br>Powered by
<a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source
projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please
keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to
subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>