[Insight-users] To Minimize or Maximize? - itk::RegularStepGradientDescentOptimizer Class Method Clarification

M. Wirtzfeld wirtzfeld at rogers.com
Thu May 8 11:24:27 EDT 2008


Good-day,

I have a couple of questions regarding the minimize/maximize set of  
functions for the itk::RegularStepGradientDescentOptimizer class.

This optimizer either minimizes or maximizes a cost-function  
depending on the metric used by the registration process class,  
correct?  For example, from the ITK Software Guide, page 342, it is  
stated that the Mattes Mutual Information metric "computes the  
negative mutual information... " and "need to minimize the cost  
function...".  Other metrics, depending on their nature, might have  
the need for the optimizer to maximize the metric value.

With regards to these sets of public member functions for this class,


virtual const bool & 	GetMaximize ()
virtual void 	MaximizeOff ()
virtual void 	MaximizeOn ()
virtual void 	SetMaximize (bool _arg)


bool 	GetMinimize () const
void 	MinimizeOff (void)
void 	MinimizeOn (void)
void 	SetMinimize (bool v)


Couldn't the "MinimizeOff(void)" and "MinimizeOn(void)" methods be  
eliminated?

The "GetMinimize()" and "SetMinimize(bool v)" methods are all that  
are fundamentally needed, correct?  The aforementioned functions are  
their to allow alternative source-code implementations, yes?


Thank you,

Michael.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080508/f76fc66c/attachment-0001.htm>


More information about the Insight-users mailing list