[ITK] ImageRegistrationMethodv4 behavior question

Timothee Evain tevain at telecom-paristech.fr
Thu Sep 8 04:11:22 EDT 2016


Hi Matt,

Well, I thought that adding a new member would do the trick?
I join examples files.

Tim



----- Mail original -----
De: "Matt McCormick" <matt.mccormick at kitware.com>
À: "Timothee Evain" <tevain at telecom-paristech.fr>
Cc: community at itk.org
Envoyé: Mercredi 7 Septembre 2016 22:24:22
Objet: Re: [ITK] ImageRegistrationMethodv4 behavior question

Hi Tim,

It sounds like a bug. Do you have patch in mind?

Thanks,
Matt

On Wed, Sep 7, 2016 at 1:05 PM, Timothee Evain
<tevain at telecom-paristech.fr> wrote:
> Hi folks,
>
> It's more a dev consideration, but I've been tricked by the SetNumberOfLevels & SetMetricSamplingPercentage methods from the ImageRegistrationMethodv4.
> The former is overwriting any previously set parameters for SmoothingSigmas and ShrinkFactors but also for the SamplingPercentage.
> If I was expecting it for the two first, as we can only set them per levels via arrays, I was expecting the sampling percentage to be stored since we can set it for all levels via the SetMetricSamplingPercentage method (which in fact is only a wrap around the "per levels" one).
> Thus you cannot set the sampling percentage before setting levels. Is that the intended behavior ? That wasn't really clear to me.
>
> Tim
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itkImageRegistrationMethodv4_patch.tar
Type: application/x-tar
Size: 79872 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20160908/e270cb56/attachment-0001.tar>


More information about the Community mailing list