[Insight-users] using itkVoronoiSegmentationImageFilter ?
Yinpeng Jin
yj76@columbia.edu
Sun, 20 Oct 2002 13:34:32 -0400
This is a multi-part message in MIME format.
------=_NextPart_000_0029_01C2783D.6C929880
Content-Type: text/plain;
charset="ks_c_5601-1987"
Content-Transfer-Encoding: quoted-printable
if you use takeaprior, then you don't want to setMean and setVar, those =
two parameters will be calculated from the binary mask.
and=20
try to use=20
m_voronoiFilter->SetMeanPercentError(PERCENT);
m_voronoiFilter->SetVarPercentError(VARPERCENT);
in stead of=20
m_voronoiFilter->SetMeanTolerance(10);=20
m_voronoiFilter->SetVarTolerance(20);=20
=20
they are trying to manipulate the same parameter, but usually are more =
intuitive to figure.
the MeanPercentError could usually be set between 0.1 to 0.3
and the VarPercentError could be between 1 to 3. they don't depends on =
your pixel intensity range, while the MeanTolerance and VarTolerance =
usually do.
Also, you can first output your m_binaryImage to see if it is something =
reasonable. the VoronoisegmentationImagefilter will need something at =
least represents
parts of your target object as the a prior.
Try the above, and let me know what happens.
Yinpeng.
----- Original Message -----=20
From: =B1=B8=BD=C2=B9=FC=20
To: insight-users@public.kitware.com=20
Sent: Sunday, October 20, 2002 12:45 AM
Subject: [Insight-users] using itkVoronoiSegmentationImageFilter ?
Hi,=20
I'm trying to use itkVoronoiSegmentationImageFilter combined with =
itkSimpleFuzzyConnectednessScalarImageFilter.=20
I made a binary image from =
itkSimpleFuzzyConnectednessScalarImageFilter but I couldn't figure out =
how to set itkVoronoiSegmentationImageFilter variables. Here is my =
source code.=20
=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20
m_voronoiFilter->SetInput(m_rawImageSource->GetOutput());=20
m_voronoiFilter->TakeAPrior(m_binaryImage);=20
m_voronoiFilter->SetMean(520);=20
m_voronoiFilter->SetVar(20);=20
m_voronoiFilter->SetMeanTolerance(10);=20
m_voronoiFilter->SetVarTolerance(20);=20
// m_voronoiFilter->SetNumberOfSeeds(400); // ??=20
m_voronoiFilter->SetSteps(5);=20
m_voronoiFilter->Update();=20
=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20
m_binaryImage is calculated from m_rawImageSource and as I expected.=20
But this code just makes a black image... all zeros.=20
=20
"=BF=EC=B8=AE =C0=CE=C5=CD=B3=DD, Daum" http://www.daum.net =
=A1=BA =C6=F2=BB=FD=BE=B2=B4=C2 =B9=AB=B7=E1 =C7=D1=B8=DE=C0=CF=B3=DD =
=A1=BB
=20
=BA=FC=B8=A3=B4=D9! =C6=ED=C7=CF=B4=D9! =
Daum=B8=DE=BD=C5=C0=FA
=B8=C5=C0=CF=B8=C5=C0=CF =BE=B2=B0=ED =B0=E8=BD=C3=C1=D2? =
Daum=BF=A3=C5=CD=C4=AB=B5=E5
Daum=C8=B8=BF=F8=C0=C7 =C7=CA=BC=F6=C7=B0! =
=BF=C2=BF=C0=C7=C1 =C3=D6=B0=ED=C0=C7 =C7=FD=C5=C3~=20
=20
_______________________________________________ Insight-users mailing =
list Insight-users@public.kitware.com =
http://public.kitware.com/mailman/listinfo/insight-users
------=_NextPart_000_0029_01C2783D.6C929880
Content-Type: text/html;
charset="ks_c_5601-1987"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dks_c_5601-1987" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3504.2500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>if you use takeaprior, then you don't =
want to=20
setMean and setVar, those two parameters will be calculated from the =
binary=20
mask.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>try to use </FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
m_voronoiFilter->SetMeanPercentError(PERCENT);<BR> =20
m_voronoiFilter->SetVarPercentError(VARPERCENT);<BR>in stead of =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
m_voronoiFilter->SetMeanTolerance(10); <BR> =20
m_voronoiFilter->SetVarTolerance(20); </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>they are trying to manipulate the same =
parameter,=20
but usually are more intuitive to figure.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the MeanPercentError could usually be =
set between=20
0.1 to 0.3</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and the VarPercentError could be =
between 1 to 3.=20
they don't depends on your pixel intensity range, while the =
MeanTolerance and=20
VarTolerance usually do.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Also, you can first output your =
m_binaryImage to=20
see if it is something reasonable. the VoronoisegmentationImagefilter =
will need=20
something at least represents</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>parts of your target object as the a=20
prior.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Try the above, and let me know what=20
happens.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Yinpeng.<BR></FONT></FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>----- Original Message ----- </DIV></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A href=3D"mailto:koosb2@hanmail.net" =
title=3Dkoosb2@hanmail.net>=B1=B8=BD=C2=B9=FC</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
href=3D"mailto:insight-users@public.kitware.com"=20
=
title=3Dinsight-users@public.kitware.com>insight-users@public.kitware.com=
</A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Sunday, October 20, 2002 =
12:45=20
AM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Insight-users] using=20
itkVoronoiSegmentationImageFilter ?</DIV>
<DIV><BR></DIV>Hi, <BR><BR>I'm trying to use =
itkVoronoiSegmentationImageFilter=20
combined with itkSimpleFuzzyConnectednessScalarImageFilter. <BR><BR>I =
made a=20
binary image from itkSimpleFuzzyConnectednessScalarImageFilter but I =
couldn't=20
figure out how to set itkVoronoiSegmentationImageFilter variables. =
Here is my=20
source code.=20
=
<BR><BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20
<BR>m_voronoiFilter->SetInput(m_rawImageSource->GetOutput());=20
<BR>m_voronoiFilter->TakeAPrior(m_binaryImage);=20
<BR>m_voronoiFilter->SetMean(520); =
<BR>m_voronoiFilter->SetVar(20);=20
<BR>m_voronoiFilter->SetMeanTolerance(10);=20
<BR>m_voronoiFilter->SetVarTolerance(20); <BR>//=20
m_voronoiFilter->SetNumberOfSeeds(400); // ??=20
<BR>m_voronoiFilter->SetSteps(5); <BR>m_voronoiFilter->Update(); =
=
<BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20
<BR><BR>m_binaryImage is calculated from m_rawImageSource and as I =
expected.=20
<BR>But this code just makes a black image... all zeros. <BR><BR><BR>
<TABLE border=3D0 cellPadding=3D5 cellSpacing=3D0 width=3D"100%">
<TBODY>
<TR>
<TD =
background=3Dhttp://image.hanmail.net/hanmail/general/dotline_sim.gif=20
height=3D1></TD></TR>
<TR>
<TD><FONT color=3D#312400 style=3D"FONT-SIZE: 9pt">"=BF=EC=B8=AE =
=C0=CE=C5=CD=B3=DD, Daum" <A=20
href=3D"http://www.daum.net" target=3D_top><FONT=20
color=3D#312400>http://www.daum.net</FONT></A> =A1=BA =
=C6=F2=BB=FD=BE=B2=B4=C2 =B9=AB=B7=E1 =C7=D1=B8=DE=C0=CF=B3=DD=20
=A1=BB<BR></FONT></TD></TR></TBODY></TABLE>
<TABLE bgColor=3D#ececec border=3D0 cellPadding=3D0 cellSpacing=3D1 =
width=3D"100%">
<TBODY>
<TR bgColor=3D#f8f8f8>
<TD>
<TABLE border=3D0 cellPadding=3D3 cellSpacing=3D0 =
width=3D"100%">
<TBODY>
<TR>
<TD align=3Dright noWrap width=3D50><A=20
href=3D"http://hmm.daum.net/footer_msg" =
target=3D_blank><IMG border=3D0=20
height=3D40=20
=
src=3D"http://image.hanmail.net/hanmail/top/adver/messenger.gif"=20
width=3D40></A></TD>
<TD class=3Dbase style=3D"FONT-SIZE: 9pt" width=3D"50%"><A=20
href=3D"http://hmm.daum.net/footer_msg" =
target=3D_blank><FONT=20
color=3D#bd8000 style=3D"FONT-SIZE: =
9pt">=BA=FC=B8=A3=B4=D9! =C6=ED=C7=CF=B4=D9!=20
=
Daum=B8=DE=BD=C5=C0=FA</FONT></A><BR>=B8=C5=C0=CF=B8=C5=C0=CF =
=BE=B2=B0=ED =B0=E8=BD=C3=C1=D2?</TD>
<TD noWrap width=3D3><IMG height=3D40=20
src=3D"http://image.hanmail.net/hm/line_h.gif" =
width=3D3></TD>
<TD width=3D40><A href=3D"http://hmm.daum.net/card_0401"=20
target=3D_blank><IMG border=3D0 height=3D40=20
=
src=3D"http://image.hanmail.net/hanmail/top/adver/ecard.gif"=20
width=3D40></A></TD>
<TD class=3Dbase style=3D"FONT-SIZE: 9pt" width=3D"50%"><A=20
href=3D"http://hmm.daum.net/card_0401" =
target=3D_blank><FONT=20
color=3D#bd8000=20
style=3D"FONT-SIZE: =
9pt">Daum=BF=A3=C5=CD=C4=AB=B5=E5</FONT></A><BR>Daum=C8=B8=BF=F8=C0=C7 =
=C7=CA=BC=F6=C7=B0! =BF=C2=BF=C0=C7=C1 =C3=D6=B0=ED=C0=C7=20
=C7=FD=C5=C3~</TD></TR></TBODY></TABLE></TD>
<TD align=3Dmiddle width=3D135><A =
href=3D"http://hmm.daum.net/footer_ad_1007"=20
target=3Dnew><IMG border=3D0=20
src=3D"http://image.hanmail.net/hm/ad/lotte_1.gif" width=3D120=20
height40></A></TD></TR></TBODY></TABLE><IMG=20
=
src=3D"http://www24.hanmail.net/Mail-bin/chkcmail?from=3Dkoosb2&rcpt=3D=
insight%2Dusers%40public%2Ekitware%2Ecom&msgid=3D%3C20021020134529%2E=
HM%2EN000000000522x2%40www24%2Ehanmail%2Enet%3E">=20
_______________________________________________ Insight-users mailing =
list=20
Insight-users@public.kitware.com=20
=
http://public.kitware.com/mailman/listinfo/insight-users</BLOCKQUOTE></BO=
DY></HTML>
------=_NextPart_000_0029_01C2783D.6C929880--