[Insight-users] Inconsistent registration result.
Seth Gilchrist
seth at mech.ubc.ca
Tue Feb 26 12:53:16 EST 2013
Hi Lien,
You may be seeing the effects of the sampling of the registration region to
create the mattes histogram.
If you check the doxygen for the MattesMutualInformationImageToImageMetric
and expand the section "public member functions inherited from
itk::ImageToImageMetric" you will find a few functions that concern
sampling (SetUseAllPixels, SetUseFixedImageIndexes,
SetUseSequentialSampling). Importantly, one of these is called
ReinitializeSeed(). Take a look at the documentation for that function and
it may help answer your question. Briefly:
"By nature, this metric is not deterministic, since at each run it may
select a different set of pixels. By initializing the random number
generator seed to the same value you can restore determinism."
Hope this helps,
Seth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130226/70a7b119/attachment.htm>
More information about the Insight-users
mailing list