<div>Hello,</div><div>I&#39;m trying to set the bounds of my optmiziation using:</div><div><br></div><div>this-&gt;m_Registration-&gt;GetOptimizer()-&gt;SetBoundSelection( boundSelection );</div><div><div>this-&gt;m_Registration-&gt;GetOptimizer()-&gt;SetUpperBound( upperBound );</div>

<div>this-&gt;m_Registration-&gt;GetOptimizer()-&gt;SetLowerBound( lowerBound );</div></div><div><br></div><div>The compiler returns:</div><div><div>error: ‘class itk::SingleValuedNonLinearOptimizer’ has no member named ‘SetBoundSelection’</div>

<div>error: ‘class itk::SingleValuedNonLinearOptimizer’ has no member named ‘SetUpperBound’</div><div>error: ‘class itk::SingleValuedNonLinearOptimizer’ has no member named ‘SetLowerBound’</div></div><div><br></div><div>
m_Registration is a private image registration method to my class and boundSelction, upperBound and lowerBound are all of type itk::Array&lt; long &gt; because I couldn&#39;t use:</div>
<div><br></div><div>typename ImageRegistrationType::OptimizerType::BoundSelectionType boundSelect, etc without getting the compiler error:</div><div><br></div><div>error: no type named ‘BoundsSelectionType’ in ‘class itk::SingleValuedNonLinearOptimizer’</div>

<div><br></div><div>I see that OptimizerType in the ImageRegistrationMethod is itk::SingleValuedNonLinearOptimizer, but is there a way I can do this without having to explicitly define each optimizer that my class might need?  I would like to keep the class simple, and just have switching of registration setup using detection of the optimizer and metric types (I plan to use a strcmp of GetNameOfClass() and the optimizer class name to do this).</div>

<div><br></div>Thanks for your help,<br clear="all">Seth<br><br>
<br>