[vtkusers] Convert VTK 3D world coordinates to 3D DICOMcoordinate

Dženan Zukić dzenanz at gmail.com
Thu May 23 04:50:59 EDT 2013


ITK's TransformPhysicalPointToIndex is what you need:
http://www.itk.org/Doxygen/html/classitk_1_1ImageBase.html#af4a7c9c3787e9fdafbaaade2e02efa25

And here it is explained mathematically:
http://www.vtk.org/Wiki/Proposals:Orientation




On Thu, May 23, 2013 at 9:19 AM, Andrick Rampun
<andrik.traveller at gmail.com>wrote:

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


More information about the vtkusers mailing list