[Insight-users] Stopping Amoeba optimizer
Lars Friedrich Lars
lars-friedrich at gmx.net
Sun Dec 5 08:41:55 EST 2010
Upsiiii, didn't perceive that. Thanks for the reply! Seems that I have to modify the vnl_amoeba class in order to get what I want ...
regards,
lars
-------- Original-Nachricht --------
> Datum: Fri, 3 Dec 2010 11:40:29 -0600
> Von: Karthik Krishnan <karthik.krishnan at kitware.com>
> An: Lars Friedrich Lars <lars-friedrich at gmx.net>
> CC: insight-users at itk.org
> Betreff: Re: [Insight-users] Stopping Amoeba optimizer
> 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
> >
--
GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit
gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl
More information about the Insight-users
mailing list