[Insight-users] Stopping Amoeba optimizer
Karthik Krishnan
karthik.krishnan at kitware.com
Fri Dec 3 12:40:29 EST 2010
That's not going to work. An internal instance of vnlamoebaFit is
created as part of the optimization by the vnl_amoeba class.
On Fri, Dec 3, 2010 at 10:30 AM, Lars Friedrich Lars
<lars-friedrich at gmx.net> wrote:
> Hello,
>
> obviously ITK's Amoeba optimizer has no method like 'StopOptimization'. I had a look at the VNL implementation (vnl_amoeba.cxx) and recognized that there is an important loop in vnl_amoebaFit::amoeba():
>
> while (cnt < maxiter) {
> ...
> }
>
> So I tried to do the following in the iteration-callback instead of calling the non-existent method StopOptimization:
>
> // opt is an instance of itk::AmoebaOptimizer
> opt->GetOptimizer()->set_max_iterations(0);
>
>
> ... but it does not work.
>
> Maybe my day was too long - but why doesn't that work?
>
> Thanks!
>
> regards,
> lars
>
> --
> GRATIS! Movie-FLAT mit über 300 Videos.
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome
> _____________________________________
> 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