<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">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 id="yiv1169410179">
</div></blockquote></td></tr></table><br>