From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Registering CT images
Date: Fri, 9 Apr 2010 00:25:22 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 18
Message-ID: <hpls5i$5$>
References: <hpljju$sb6$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1270772722 5 (9 Apr 2010 00:25:22 GMT)
NNTP-Posting-Date: Fri, 9 Apr 2010 00:25:22 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: comp.soft-sys.matlab:624882

"Thommes " <> wrote in message <hpljju$sb6$>...
> I need some help here:
> I have been trying to register two CT images of the same anatomic region which are reconstructed with different fields of view. There is a certain anatomic structure visible in both images, but displayed at different positions in different scales. I have defined a set of control points within the anatomic structure in both images and used cp2tform and imtransform to align both images. However, the resulting aligned image is obviously of different size than the base image and the anatomic structure is still at a different position, although now roughly the same size.
> How can I create an aligned image with the same matrix as the base image, where the control points are at the same position as in the base image?
> Thank you very much!
> Chris
  In the Statistics Toolbox there is a function called 'procrustes' which may accomplish what I think you want.  It requires the set of control points in each image which you describe.  It finds that particular translation, orthogonal rotation, scaling, and possible reflection that minimizes the mean square difference between corresponding control points' positions.  It can work in three dimensions if desired but then of course the control points need to also be three dimensional.

  If you are troubled by the reflection aspect or if you don't have access to the Statistics Toolbox, there was a thread in this newsgroup a couple of years ago in which I outlined a procedure that performs the same computation as in 'procrustes' except that no reflection is allowed.  That thread is to be found at:

and was entitled "Procrustes Analysis without Reflection".

Roger Stafford