[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/insight-users/attachments/20170512/f83d6cc8/attachment.html>


More information about the Insight-users mailing list