<div><FONT face=arial>Hi all,</FONT></div> <div><FONT face=arial></FONT> </div> <div><FONT face=arial>I was wondering if anyone might be able to explain to me/help me better understand 2 errors I get while using the ImagePCAShapeModelEstimator. I get 2 errors as follows:</FONT></div> <div> </div> <div><FONT face=arial><STRONG>1.</STRONG> error C2039: 'SetNumberofTrainingImages' : is not a member of 'itk::ImagePCAShapeModelEstimator<TInputImage,TOutputImage>'</FONT></div> <div><FONT face=arial>with</FONT></div> <div><FONT face=arial>[</FONT></div> <div><FONT face=arial>TInputImage=InputImageType,</FONT></div> <div><FONT face=arial>TOutputImage=OutputImageType</FONT></div> <div><FONT face=arial>]</FONT></div> <div> </div> <div><FONT face=arial><STRONG>2.</STRONG> error C2039: 'SetNumberofPrincipalComponentsrequired' : is not a member of
'itk::ImagePCAShapeModelEstimator<TInputImage,TOutputImage>'</FONT></div> <div><FONT face=arial>with</FONT></div> <div><FONT face=arial>[</FONT></div> <div><FONT face=arial>TInputImage=InputImageType,</FONT></div> <div><FONT face=arial>TOutputImage=OutputImageType</FONT></div> <div><FONT face=arial>]</FONT></div> <div><FONT face=arial color=#008000></FONT> </div> <div><FONT face=arial>Here is how I set up the ImagePCAShapeModelEstimator:</FONT></div> <div> </div><FONT color=#0000ff> <div><FONT face=arial>typedef</FONT></FONT><FONT face=arial> itk::ImagePCAShapeModelEstimator< InputImageType, </FONT></div> <div><FONT face=arial> OutputImageType > EstimatorType;</FONT></div> <div><FONT face=arial> EstimatorType::Pointer shapeestimator = EstimatorType::New();</FONT></div>
<div><FONT face=arial> shapeestimator->SetNumberofTrainingImages(6);</FONT></div> <div><FONT face=arial> shapeestimator->SetNumberofPrincipalComponentsrequired(6);</FONT></div> <div> </div> <div>It states in the deoxygen documentation for the ImagePCAShapeModelEstimator that 'SetNumberofTrainingImages' and 'SetNumberofPrincipalComponentsrequired' are public member functions: <A href="http://www.itk.org/Doxygen32/html/classitk_1_1ImagePCAShapeModelEstimator.html">http://www.itk.org/Doxygen32/html/classitk_1_1ImagePCAShapeModelEstimator.html</A></div> <div> </div> <div>Can someone please explain what might be wrong. I'm fairly new to itk and I'm not that good at coding in c++. I think might be misunderstanding or over looking something.</div> <div> </div> <div>Thanks in advance for your assistance.</div> <div> </div>
<div>Tomi L. </div><p> 
<hr size=1>Catch up on <a href="http://us.rd.yahoo.com/tv/mail/tagline/falltv/evt=47093/*http://tv.yahoo.com/collections/3658
">fall's hot new shows</a> on Yahoo! TV. Watch previews, get listings, and more!