Skip to main content

[JAVA2D] transformation to patient coordinate system

2 replies [Last post]
Anonymous

Hi all,

I am working on developing an editing tool for medical images. These
medical images are in DICOM format. I load these images in
Java2D canvas. I can get the Image position and Image orientation in mm
from the diconm header. Is there a way to generate the transformation
matrix with Image postion(x,y,z) and Image orientation(row vector and
column vector). I need this transformation matrix to transform my 2D
point that
I get on a mouse click to patient coordinate space.

Thanks,
Archana Chilukuri

--------------------------------------------------------

This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information.Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. If you are the intended recipient, please be advised that the content of this message is subject to access, review and disclosure by the sender's Email System Administrator.
--------------------------------------------------------

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
danblanks
Offline
Joined: 2003-06-13

You might also want to check out the "Building Imaging Applications with Java Technology" book by Rodrigues. His examples include a medical imaging application.

Dan

Mark McKay

Archana Chilukuri wrote:

>
> Hi all,
>
> I am working on developing an editing tool for medical images. These
> medical images are in DICOM format. I load these images in
> Java2D canvas. I can get the Image position and Image orientation in
> mm from the diconm header. Is there a way to generate the transformation
> matrix with Image postion(x,y,z) and Image orientation(row vector and
> column vector). I need this transformation matrix to transform my 2D
> point that
> I get on a mouse click to patient coordinate space.
>
> Thanks,
> Archana Chilukuri
>

If you're doing 2D to 3D transforms, you'll either have to code your own
matricies or use the javax.vecmath package that comes with Java3D. If
all you need is a simple 2D to 2D transform, you can use the
AffineTransform that comes in java.awt.geom. How does a mouse click
translate into picking a point?

Mark McKay

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".