[ITK] [ITK-users] initialize same metric object multiple times

D'Isidoro Fabio fisidoro at ethz.ch
Fri May 12 08:26:46 EDT 2017


Hallo,

is it possible to initialize the same metric object multiple times (i.e. 50 times), with different fixed images and/or different masks?

For example:

metric  = MattesMutualInformationImageToImageMetricv4[ImageType,ImageType].New()
metric.SetTransform(identityTransform)
metric.SetFixedImage( FixedImage1 )
metric.SetFixedImageMask(spatialObjectMask1 )
metric.SetMovingImage(MovingImage)
metric.Initialize()
metric.GetValue()
...
...
metric.SetFixedImage( FixedImage2 )
metric.SetFixedImageMask(spatialObjectMask2 )
metric.Initialize()
metric.GetValue()
...
...
metric.SetFixedImage( FixedImage3 )
metric.SetFixedImageMask(spatialObjectMask3 )
metric.Initialize()
metric.GetValue()


I read on the manual that "initialize() is for one-time initialization", but I m not sure what that means.

Thank you,
Fabio.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170512/f83d6cc8/attachment-0001.html>
-------------- next part --------------
_____________________________________
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.php

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://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list