<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>Hi, Luis,<BR><BR>The dataset I used is&nbsp;"sphere.zip", 
which can be downloaded from <A 
href="http://appsrv.cse.cuhk.edu.hk/~dfwang/tmp/sphere.zip">http://appsrv.cse.cuhk.edu.hk/~dfwang/tmp/sphere.zip</A> 
(the size is about 30K). By uncompressing this file, you will see Analyze file 
of "sphere.hdr" and "sphere.img".<BR><BR>The parameters I used are listed as 
follows,<BR><BR>Internal Forces (Alpha): 0.8<BR>External Forces (Beta): 
0.8<BR>Damping Forces (Gamma): 0.35<BR>Range of Search: 2<BR>Rigidity 
(Regularizing): 0.5<BR>Number of Iterations: 1<BR><BR>The parameters involved in 
the gradient calculation of <BR>DeformableModelSimplexMesh are keep unchanged. 
That is, I did not make any <BR>change to the source code of 
DeformableModelSimplexMesh.<BR><BR>The steps to reproduce my results are listed 
as follows,<BR><BR>1. "File/Load File", select "sphere.hdr";<BR>2. left click 
the center point of the upper left image, then click <BR>"File/Create Mesh", you 
will see a simplex spherical mesh in the window;<BR>3. "File/Preprocess Image", 
wait about two minutes to finish the preprocess;<BR>4. Click "Settings/Deform 
Mesh" about 25 times. Each time after your click, <BR>you will see that the 
simplex mesh deform. In this process, you can see the <BR>problem I described in 
my last email.<BR><BR>By the way, if I set the parameter of "Number of 
Iterations: 1" to 25, and <BR>click "Settings/Deform Mesh" only once. The result 
I got seems quite <BR>similiar to the initial mesh, and is not like the one got 
by seting "Number <BR>of Iterations: 1" to 1 and click "Settings/Deform Mesh" 25 
times. I think <BR>this is another bug in this program.<BR><BR>If any part in 
the above desription is not clear enough, please let me know <BR>and I will try 
to provide more details.<BR><BR>Best wishes,<BR>Defeng<BR><BR><BR>----- Original 
Message ----- <BR>From: "Luis Ibanez" &lt;<A 
href="">luis.ibanez@kitware.com</A>&gt;<BR>To: "Defeng WANG" &lt;<A 
href="">dfwang@cse.cuhk.edu.hk</A>&gt;<BR>Cc: "Leila Baghdadi" &lt;<A 
href="">baghdadi@phenogenomics.ca</A>&gt;; <BR>&lt;<A 
href="">insight-developers@itk.org</A>&gt;; &lt;<A 
href="">insight-users@itk.org</A>&gt;<BR>Sent: Friday, February 01, 2008 10:40 
AM<BR>Subject: Re: [Insight-developers] bug report on DeformableModelSimplexMesh 
<BR>application<BR><BR><BR>&gt;<BR>&gt; Hi Defeng,<BR>&gt;<BR>&gt; Can you 
please post in a public web site the image that<BR>&gt; you are using as input, 
and the full set of parameters<BR>&gt; that you are using for running this 
application ?<BR>&gt;<BR>&gt; Otherwise it is very hard for us to figure out how 
far<BR>&gt; from the edge of the image you are seeing the final<BR>&gt; contour 
stopping.<BR>&gt;<BR>&gt; Please give use a very clear sequence of step that 
we<BR>&gt; could follow to reproduce your experience 
here.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;&nbsp;&nbsp; 
Thanks<BR>&gt;<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Luis<BR>&gt;<BR>&gt;<BR>&gt; -------------------<BR>&gt; Defeng WANG 
wrote:<BR>&gt;&gt; Hi, Leila,<BR>&gt;&gt;<BR>&gt;&gt; Thanks for your reply. It 
seems that the parameters in the UI of<BR>&gt;&gt; DeformableModelSimplexMesh 
are not related to the gradient calculation. I<BR>&gt;&gt; read the source code 
involved in DeformableModelSimplexMesh. As for the<BR>&gt;&gt; gradient 
calculation, three filters are used successively as 
follows,<BR>&gt;&gt;<BR>&gt;&gt;&nbsp; 
m_GradientMagnitude-&gt;SetInput(m_CastImage-&gt;GetOutput() 
);<BR>&gt;&gt;&nbsp; 
m_GradientMagnitude-&gt;SetSigma(0.5);<BR>&gt;&gt;<BR>&gt;&gt;&nbsp; 
m_SigmoidImage-&gt;SetInput( 
m_GradientMagnitude-&gt;GetOutput());<BR>&gt;&gt;&nbsp; 
m_SigmoidImage-&gt;SetOutputMinimum(0);<BR>&gt;&gt;&nbsp; 
m_SigmoidImage-&gt;SetOutputMaximum(1);<BR>&gt;&gt;&nbsp; 
m_SigmoidImage-&gt;SetAlpha(230);<BR>&gt;&gt;&nbsp; 
m_SigmoidImage-&gt;SetBeta(1300);<BR>&gt;&gt;<BR>&gt;&gt;&nbsp; 
m_GradientFilter-&gt;SetInput( 
m_SigmoidImage-&gt;GetOutput());<BR>&gt;&gt;&nbsp; 
m_GradientFilter-&gt;SetSigma( 0.5);<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; I have 
taken a look at the final gradent image. It seems that it is good<BR>&gt;&gt; 
enough to describe the<BR>&gt;&gt; edge or boundary of a sphere. So what do you 
think of this problem <BR>&gt;&gt; existing<BR>&gt;&gt; in this simple 
example?<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; Look forard to your 
response.<BR>&gt;&gt;<BR>&gt;&gt; Best wishes,<BR>&gt;&gt; 
Defeng<BR>&gt;&gt;<BR>&gt;&gt; ----- Original Message ----- From: "Leila 
Baghdadi"<BR>&gt;&gt; &lt;<A 
href="">baghdadi@phenogenomics.ca</A>&gt;<BR>&gt;&gt; To: "Defeng WANG" &lt;<A 
href="">dfwang@cse.cuhk.edu.hk</A>&gt;<BR>&gt;&gt; Cc: &lt;<A 
href="">insight-developers@itk.org</A>&gt;; &lt;<A 
href="">insight-users@itk.org</A>&gt;<BR>&gt;&gt; Sent: Thursday, January 31, 
2008 10:54 PM<BR>&gt;&gt; Subject: Re: [Insight-developers] bug report 
on<BR>&gt;&gt; DeformableModelSimplexMesh 
application<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;&gt; Hi 
Defeng,<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; Yes I have used that code many a times. 
I am not sure if I understand<BR>&gt;&gt;&gt; what you mean by "it does not 
converge".<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; My understanding of deformable models 
is<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; 1. you must make sure your gradient image is 
created properly. Use<BR>&gt;&gt;&gt; paraview to look at the vector 
image<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; 2. you must play with the parameters to 
get the model to converge,<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; This is a specific 
type of deformable models which uses simplex mesh.<BR>&gt;&gt;&gt; I suggest you 
read about this algorithm first. This is developed based<BR>&gt;&gt;&gt; on the 
paper by Herve Delingette of INRIA 
france.<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; 
Leila<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; On Thu, 2008-31-01 at 22:29 +0800, Defeng 
WANG wrote:<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; Hello, ITK users and 
developers,<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; I found that 
DeformableModelSimplexMesh, provided in<BR>&gt;&gt;&gt;&gt; 
InsightApplications-3.4.0, does not converge. It seems that 
the<BR>&gt;&gt;&gt;&gt; deformable mesh will not stop near the boundary of one 
object to be<BR>&gt;&gt;&gt;&gt; segmented. I tried a very simple volume data 
set containing a sphere<BR>&gt;&gt;&gt;&gt; only. The initial mesh I used is a 
spherical simplex mesh inside it.<BR>&gt;&gt;&gt;&gt; However, by increasing the 
number of iterations, the mesh will<BR>&gt;&gt;&gt;&gt; continue to expand until 
it reaches outside of the image and the<BR>&gt;&gt;&gt;&gt; program reports 
error.<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; Is there anybody tried this 
program successfully before? Or anybody<BR>&gt;&gt;&gt;&gt; knows how to adjust 
the parameters properly to get right 
segmentation?<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; Best 
wishes,<BR>&gt;&gt;&gt;&gt; Defeng<BR>&gt;&gt;&gt;&gt; 
_______________________________________________<BR>&gt;&gt;&gt;&gt; 
Insight-developers mailing list<BR>&gt;&gt;&gt;&gt; <A 
href="">Insight-developers@itk.org</A><BR>&gt;&gt;&gt;&gt; <A 
href="">http://www.itk.org/mailman/listinfo/insight-developers</A><BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; 
_______________________________________________<BR>&gt;&gt; Insight-developers 
mailing list<BR>&gt;&gt; <A href="">Insight-developers@itk.org</A><BR>&gt;&gt; 
<A 
href="">http://www.itk.org/mailman/listinfo/insight-developers</A><BR>&gt;&gt; 
<BR></BODY></HTML>