[Insight-developers] another image transform question

Lydia Ng lng@insightful.com
Mon, 10 Feb 2003 13:43:16 -0800


Hi Damion,

Isn't itkMeanSquaresImageToImageMetric just using=20
image->TransformIndexToPhysicalPoint()?

Or am I missing something?

-Lydia

-----Original Message-----
From: Damion Shelton [mailto:beowulf@cs.cmu.edu]=20
Sent: Monday, February 10, 2003 1:30 PM
To: Insight-developers@public.kitware.com
Subject: [Insight-developers] another image transform question

Ok, the previous issue is resolved. A more complicated case arises in=20
itkMeanSquaresImageToImageMetric, which assumes that the transform is=20
available in the image class. Rather than just transforming indices,=20
this class loads the image transform in order to transform points, a=20
capability which is not currently provided in the image itself.

I see two solutions:

1) This class could be modified to create a local (presumably affine)=20
transform by obtaining the origin and spacing information from the=20
image in question.

2) Image could maintain a local affine transform, which is implicitly=20
created from origin and spacing and cannot be modified. This would be=20
similar to the "default" case from before. The Image implementations of=20
TransformBlahToBlah need not actually use this transform (for=20
efficiency's sake) but it looks like it would be convenient to have=20
around for other classes.

I think the second option is the way to go. Opinions?

-Damion-

_______________________________________________
Insight-developers mailing list
Insight-developers@public.kitware.com
http://public.kitware.com/mailman/listinfo/insight-developers