<div dir="ltr">Yes....exactly...but how can i do that mathematically? without looking at the VTK code.<div>I would like an explanation in a mathematical way so i can write my own code in MatLab. </div><div><br></div><div>Thanks,</div>
<div>Eric</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 23, 2013 at 11:00 AM, Hongsongyang <span dir="ltr"><<a href="mailto:hongsongyang@163.com" target="_blank">hongsongyang@163.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Could I understand as that you want to convert world coordinates into screen<br>
coordinates?<br>
<div class="im HOEnZb"><br>
> -----Original Message-----<br>
> From: <a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a><br>
> [mailto:<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a>] On Behalf Of ericphd<br>
</div><div class="im HOEnZb">> Sent: Thursday, May 23, 2013 12:51 AM<br>
> To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
> Subject: Re: [vtkusers] Convert VTK 3D world coordinates to<br>
> 3D DICOMcoordinate<br>
><br>
</div><div class="HOEnZb"><div class="h5">> Thanks for your reply hongsongyang,<br>
><br>
> Okay..maybe I should explain more here.<br>
> The coordinates/annotations generated by the tool (ITK/VTK) I<br>
> presume in World coordinate?<br>
><br>
> If they are in world coordinate then what I want to do is to<br>
> write a MatLab code to convert all those world coordinates<br>
> into 2D with top left corner starts from (0,0). Basically I<br>
> want to convert those world coordinate into 2D image plane as<br>
> we viewing image on our computer screen.<br>
><br>
> * Maybe ignore the 3D dicom coordinate here. I just want to<br>
> convert from world coordinate into 2D image plane coordinate.<br>
> For example something like this<br>
><br>
> In world coordinate generated from VTK (-2.23,6.95,17.5) and into 2D<br>
> (209,264)<br>
><br>
> But don't worry about the matlab code because i can write it.<br>
> I just want to know the mathematical formula to do the conversion.<br>
><br>
> Thanks,<br>
> Eric<br>
><br>
><br>
><br>
> --<br>
> View this message in context:<br>
> <a href="http://vtk.1045678.n5.nabble.com/Convert-VTK-3D-world-coordina" target="_blank">http://vtk.1045678.n5.nabble.com/Convert-VTK-3D-world-coordina</a><br>
> tes-to-3D-DICOM-coordinate-tp5720854p5720886.html<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<br>
> <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:<br>
> <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>
<br>
<br>
</div></div></blockquote></div><br></div>