[Insight-users] Scaling on two 3D masks
Luis Ibanez
luis.ibanez at kitware.com
Fri Feb 12 09:08:36 EST 2010
John, Sylvain,
Instead of manually using the ChangeInformation,
it may be better to use the
CenteredTransformInitializer
and to set it to operate using Moments.
This class will compute an initial transform with
a translation that overlaps the center of mass
of both images.
The initialized transform is then passed to the
registration method.
You will find many examples of the use off the
transform initializer in the directory:
Insight/Examples/Registration
Regards,
Luis
--------------------------------------------------------------------------------------
On Fri, Feb 12, 2010 at 12:24 AM, Sylvain Jaume <sylvain at csail.mit.edu> wrote:
> Hello John,
>
> You can use itk::ChangeInformationImageFilter to change the origin and
> spacing of the second image. You also need to call ChangeOriginOn()
> and ChangeSpacingOn().
>
> HTH,
> Sylvain
>
> On Fri, Feb 12, 2010 at 12:14 AM, J. Pura <puraj at mail.nih.gov> wrote:
>>
>> Hello,
>>
>> I have two 3D binary masks, with both images having the same pixel sizes, as
>> well as the same dimensions in x,y,z. Prior to performing a fine, local
>> rigid registration on the two images, I need to normalize their center of
>> masses (COM) and their scaling. Normalizing COM seems to be fine, but I am
>> wondering how I can scale one image based on the scale of the other image.
>> My thinking is to do a registration in ITK using the itkScaleTransform for
>> my transform. Can someone please point me in the right direction?
>>
>> Thanks,
>>
>> John
>> --
>> View this message in context: http://old.nabble.com/Scaling-on-two-3D-masks-tp27559029p27559029.html
>> Sent from the ITK - 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
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.html
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users
>>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list