[Insight-users] SimpleFuzzyConnectednessScalarImageFilter
Zein Salah
salah@gris.uni-tuebingen.de
Fri, 27 Sep 2002 12:18:13 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_004B_01C2661F.F3836890
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello friends,
1) I am trying to use the SimpleFuzzyConnectednessScalarImageFilter. The =
program I wrote requires at least 40 minutes for an image of size =
250x220x90. Is that a resonable time?????????????? The code I am using =
is:
SimpleFuzzyConnectednessScalarImageFilterType::Pointer=20
m_Seg =3D =
SimpleFuzzyConnectednessScalarImageFilterType::New();
=20
m_Seg->SetInput( ...... );
IndexType mSeed =3D {{86, 100, 50}};
m_Seg->SetObjectsSeed(mSeed);
m_Seg->SetMean(5);
m_Seg->SetVariance(40);
m_Seg->SetThreshold( 0.05 );
m_Seg->Update();
In the paper (Fuzzy Connectedness and Object Definition: Theory, =
Algorithms, and Applications in Image Segmentation", J. Udupa and S. =
Samarasekera), page 259, it is stated that there are two version of the =
algorithm. One requires on some machine about 20 min for an image of =
256x256x64, and the other version requires only 2 minutes for the same =
image. WHICH version is the implemented one in the filter of =
ITK???????????????=20
2) I read in the documentation of the filter that GenerateDate is to be =
run to perform the segmentation =
http://www.itk.org/Doxygen/html/classitk_1_1SimpleFuzzyConnectednessScala=
rImageFilter.html
I have tried that with the following code, it resulted a compilation =
error.
SimpleFuzzyConnectednessScalarImageFilterType::Pointer=20
m_Seg =3D =
SimpleFuzzyConnectednessScalarImageFilterType::New();
=20
m_Seg->SetInput( ...... );
IndexType mSeed =3D {{86, 100, 50}};
m_Seg->SetObjectsSeed(mSeed);
m_Seg->SetMean(5);
m_Seg->SetVariance(40);
m_Seg->SetThreshold( 0.05 );
GenerateData();
The resulted error is:
-------------------Configuration: GaussianFilter - Win32 =
Debug--------------------
Compiling...
iomodule.cpp
main.cpp
Tester.cpp
D:\InsightBeta2-bin\Examples\ZeinTester\Tester.cpp(101) : error C2248: =
'GenerateData' : cannot access protected member declared in class =
'itk::SimpleFuzzyConnectednessImageFilterBase<class =
itk::Image<float,3>,class itk::Image<float,3> >'
=
D:\InsightBeta2\Code\Algorithms\itkSimpleFuzzyConnectednessImageFilterBas=
e.h(115) : see declaration of 'GenerateData'
Generating Code...
Error executing cl.exe.
Creating browse info file...
ZeinTester.exe - 1 error(s), 0 warning(s)
What could the problem be????????
I will be very thankfull for any type of help.
Zein
->8<------------->8<------------->8<------------->8<------------->8<-----=
-------->8<-
Zein I. Salah=20
Universit=E4t T=FCbingen, WSI-GRIS=20
Sand 14=20
72076 T=FCbingen=20
Email: salah@gris.uni-tuebingen.de / zeinsalah@hotmail.com
Tel.: (07071) 29 75465 (GRIS) , (07071) 96 44 39 (privat)=20
Fax: (07071) 29 54 66
------=_NextPart_000_004B_01C2661F.F3836890
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello friends,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>1) </FONT><FONT face=3DArial size=3D2>I =
am trying to=20
use the SimpleFuzzyConnectednessScalarImageFilter. The program I wrote =
requires=20
at least 40 minutes for an image of size 250x220x90. Is that a =
resonable=20
time?????????????? The code I am using is<FONT=20
color=3D#0000ff>:</FONT></FONT></DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2> =20
SimpleFuzzyConnectednessScalarImageFilterType::Pointer=20
<BR> &nb=
sp; &nbs=
p; =20
m_Seg =3D =
SimpleFuzzyConnectednessScalarImageFilterType::New();<BR> =20
<BR> m_Seg->SetInput( ...... );<BR> =20
IndexType mSeed =3D {{86, 100, 50}};<BR> =20
m_Seg->SetObjectsSeed(mSeed);<BR> =20
m_Seg->SetMean(5);<BR> =
m_Seg->SetVariance(40);<BR> =20
m_Seg->SetThreshold( 0.05 );<BR> =
m_Seg->Update();</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>In the paper (<FONT =
color=3D#008000>Fuzzy=20
Connectedness and </FONT><A class=3Del=20
href=3D"http://www.itk.org/Doxygen/html/classitk_1_1Object.html"><FONT=20
color=3D#008000>Object</FONT></A><FONT color=3D#008000> Definition: =
Theory,=20
Algorithms, and Applications in </FONT><A class=3Del=20
href=3D"http://www.itk.org/Doxygen/html/classitk_1_1Image.html"><FONT=20
color=3D#008000>Image</FONT></A><FONT color=3D#008000> Segmentation", J. =
Udupa and=20
S. Samarasekera)<FONT color=3D#000000>, page 259, it is stated that =
there are two=20
version of the algorithm. One requires on some machine about 20 min for =
an image=20
of 256x256x64, and the other version requires only 2 minutes for the =
same=20
image. WHICH version is the implemented one in the filter=20
of ITK???????????????</FONT> </FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>2) I read in the documentation of the =
filter that=20
GenerateDate is to be run to perform the segmentation <A=20
href=3D"http://www.itk.org/Doxygen/html/classitk_1_1SimpleFuzzyConnectedn=
essScalarImageFilter.html">http://www.itk.org/Doxygen/html/classitk_1_1Si=
mpleFuzzyConnectednessScalarImageFilter.html</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I have tried that with the following =
code, it=20
resulted a compilation error.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> <FONT=20
color=3D#0000ff>SimpleFuzzyConnectednessScalarImageFilterType::Pointer=20
<BR> &nb=
sp; &nbs=
p; =20
m_Seg =3D =
SimpleFuzzyConnectednessScalarImageFilterType::New();<BR> =20
<BR> m_Seg->SetInput( ...... );<BR> =20
IndexType mSeed =3D {{86, 100, 50}};<BR> =20
m_Seg->SetObjectsSeed(mSeed);<BR> =20
m_Seg->SetMean(5);<BR> =
m_Seg->SetVariance(40);<BR> =20
m_Seg->SetThreshold( 0.05 );</FONT></FONT></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff> =20
GenerateData();</FONT><BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The resulted error is:</FONT></DIV>
<DIV><FONT face=3DArial color=3D#ff0000=20
size=3D2> -------------------Configuration: GaussianFilter - Win32=20
Debug--------------------<BR>Compiling...<BR>iomodule.cpp<BR>main.cpp<BR>=
Tester.cpp<BR>D:\InsightBeta2-bin\Examples\ZeinTester\Tester.cpp(101)=20
: error C2248: 'GenerateData' : cannot access protected member declared =
in class=20
'itk::SimpleFuzzyConnectednessImageFilterBase<class=20
itk::Image<float,3>,class itk::Image<float,3>=20
>'<BR> =20
D:\InsightBeta2\Code\Algorithms\itkSimpleFuzzyConnectednessImageFilterBas=
e.h(115)=20
: see declaration of 'GenerateData'<BR>Generating Code...<BR>Error =
executing=20
cl.exe.<BR>Creating browse info file...</FONT></DIV>
<DIV><FONT color=3D#ff0000></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><FONT color=3D#ff0000>ZeinTester.exe - =
1 error(s), 0=20
warning(s)</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT color=3D#ff0000></FONT><BR>What =
could the=20
problem be????????</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I will be very thankfull for any =
type of=20
help.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Zein</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> </DIV></FONT>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>->8<------------->8<------------->8<----------=
--->8<------------->8<------------->8<-<BR>Zein=20
I. Salah <BR>Universit=E4t T=FCbingen, WSI-GRIS <BR>Sand 14 <BR>72076 =
T=FCbingen=20
<BR>Email: <A=20
href=3D"mailto:salah@gris.uni-tuebingen.de">salah@gris.uni-tuebingen.de</=
A> =20
/ <A =
href=3D"mailto:zeinsalah@hotmail.com">zeinsalah@hotmail.com</A><BR>Tel.: =
(07071) 29 75465 (GRIS) , (07071) 96 44 39 (privat) <BR>Fax: (07071) 29 =
54=20
66</FONT></DIV></BODY></HTML>
------=_NextPart_000_004B_01C2661F.F3836890--