<br>Hi Baoyun,<br><br>Thanks for comparing the code.<br><br>Could you please post the *exact* error messages <br>that you are getting.<br><br>It may be that we are trying to solve the wrong <br>problem here...<br><br>Looking at the original messages will help us verify<br>
that we are in the right track.<br><br><br> Thanks<br><br><br> Luis<br><br><br>--------------------------------------<br><div class="gmail_quote">On Wed, May 26, 2010 at 4:44 PM, Baoyun Li <span dir="ltr"><<a href="mailto:baoyun_li123@yahoo.com">baoyun_li123@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">
Hi, Luis:<br><br>Thanks for your help. But I really couldn't find any difference with my original code. Can you clarify it further.<br><br>I
try to implement it with a class and add some small non-member function
in the class implementation. But still got multiple definition error. I
knew I can add a class function to do the work, but the way I did now
should also be right. Can you please look at the attached code?<br><br>I use the following to call the class in my main:<br><br> typedef EmGmm<3,VectorImageType,InternalImageType,float> EmFilterType;<br> EmFilterType *emfilter;<br>
emfilter=new EmFilterType;<br> emfilter->Update();<br> emfilter->SetInput(vectorimage);<br> //final_mask=levelset1->GetOutput();<br> delete emfilter;<br>thanks<br><br>Baoyun<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br></blockquote><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div>
</div></blockquote></td></tr></tbody></table><br>
</blockquote></div><br>