[Insight-users] using itkVoronoiSegmentationImageFilter ?

±¸½Â¹ü koosb2@hanmail.net
Sun, 20 Oct 2002 13:45:29 +0900 (KST)


Hi,
<br>
<br>I'm trying to use itkVoronoiSegmentationImageFilter combined with itkSimpleFuzzyConnectednessScalarImageFilter.
<br>
<br>I made a binary image from itkSimpleFuzzyConnectednessScalarImageFilter but I couldn't figure out how to set itkVoronoiSegmentationImageFilter variables. Here is my source code.
<br>
<br>=============================================================
<br>m_voronoiFilter->SetInput(m_rawImageSource->GetOutput());
<br>m_voronoiFilter->TakeAPrior(m_binaryImage);
<br>m_voronoiFilter->SetMean(520);
<br>m_voronoiFilter->SetVar(20);
<br>m_voronoiFilter->SetMeanTolerance(10);
<br>m_voronoiFilter->SetVarTolerance(20);
<br>//	m_voronoiFilter->SetNumberOfSeeds(400);  // ??
<br>m_voronoiFilter->SetSteps(5);
<br>m_voronoiFilter->Update();
<br>=============================================================
<br>
<br>m_binaryImage is calculated from m_rawImageSource and as I expected.
<br>But this code just makes a black image... all zeros.
<br>
	<br><br>
<table border=0 cellpadding=5 cellspacing=0 width=100%%><tr>
<td background='http://image.hanmail.net/hanmail/general/dotline_sim.gif' height=1></td></tr>
<tr><td><font color="#312400" style="font-size:9pt;">"¿ì¸® ÀÎÅͳÝ, Daum" 
<a href='http://www.daum.net' target=_top><font color="#312400">http://www.daum.net</font></a> 
¡º Æò»ý¾²´Â ¹«·á ÇѸÞÀÏ³Ý ¡»<br></font></td></tr></table>
<table bgcolor="#ECECEC" border=0 cellpadding=0 cellspacing=1 width=100%%><tr bgcolor=#F8F8F8>
<td>
<table border=0 cellpadding=3 cellspacing=0 width=100%%><tr>
<td width=50 align=right nowrap>
<a href='http://hmm.daum.net/footer_msg' target=_blank><img src='http://image.hanmail.net/hanmail/top/adver/messenger.gif' width=40 height=40 border=0></a></td>
<td width=50%% class=base style="line-height:140%%; font-size:9pt;">
<a href='http://hmm.daum.net/footer_msg' target=_blank><font color=#BD8000 style="font-size:9pt;">ºü¸£´Ù! ÆíÇÏ´Ù! Daum¸Þ½ÅÀú</font></a><br>¸ÅÀϸÅÀÏ ¾²°í °è½ÃÁÒ?</td>
<td width=3 nowrap><img src='http://image.hanmail.net/hm/line_h.gif' width=3 height=40></td>
<td width=40><a href='http://hmm.daum.net/card_0401' target=_blank><img src='http://image.hanmail.net/hanmail/top/adver/ecard.gif' width=40 height=40 border=0></a></td>
<td width=50%% class=base style="line-height:140%%; font-size:9pt;">
<a href='http://hmm.daum.net/card_0401' target=_blank><font color=#BD8000 style="font-size:9pt;">Daum¿£ÅÍÄ«µå</font></a><br>Daumȸ¿øÀÇ ÇʼöÇ°! ¿Â¿ÀÇÁ ÃÖ°íÀÇ ÇýÅÃ~</td></tr></table>
</td>
<td width="135" align="center"><a href='http://hmm.daum.net/footer_ad_1007' target='new'>
<img src='http://image.hanmail.net/hm/ad/lotte_1.gif' width=120 height40 border=0></a></td></tr></table>

<img src="http://www24.hanmail.net/Mail-bin/chkcmail?from=koosb2&rcpt=insight%2Dusers%40public%2Ekitware%2Ecom&msgid=%3C20021020134529%2EHM%2EN000000000522x2%40www24%2Ehanmail%2Enet%3E">