[Insight-users] Statistics: Find out coefficient of affine transform

Mathieu Malaterre mathieu.malaterre at gmail.com
Fri May 4 12:58:04 EDT 2007


Hello,

  I have a pretty simple problem to solve and I was wondering if I
could reuse any brick already existing in ITK.

  I am working with a 4D dataset (x,y,y and theta), where I can
express for each pixel that:

I(x,y,z)/sin(theta) = F(x,y,z) + b*I(x,y,z)/tan(theta)

  My goal here is to find out the b constant, I do not need the
F(x,y,z) part. Obvisouly all I need to do is draw the line

   X = a + b Y

where X = I(x,y,z)/sin(theta) and Y = I(x,y,z)/tan(theta) and the
slope will give me 'b'.

Any suggestions on which class to reuse ?
thanks !
-- 
Mathieu


More information about the Insight-users mailing list