[Insight-users] How to put a initial mesh in the itkBalloonForce3DFilter

Samuel Rodríguez Bescos srodrigu@gbt.tfo.upm.es
Mon, 27 Jan 2003 16:59:26 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C2C625.73486890
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi everyBody,

I have tried to use the deforableModel3DFilter to segment the liver. The =
initial mesh is derived from the applying the Marching cubes of the =
binary Image resulted of the confidencefilter of the image. The results =
in not good because the confidence filter segmented other parts of the =
image that don't belong to the liver.

Now I'm trying to use the itkBalloonForce3DFilter with a Sphere as =
initial image and the potential image the binary image I refered before. =
I'm visualizating the result and the planes sagital, coronal and axial =
of the initial image with vtk.

The problem is the the final Mesh appears at the origen of the image and =
doesn't change from the initial mesh, the final mesh is a Sphere, I =
think the problem is that the initial mesh hasn't been located well.

The code that i use to put the center is the next:

  m_Center[0]=3D x;
  m_Center[1]=3D y;
  m_Center[2]=3D z;

  m_BalloonForce3DFilter->SetCenter(m_Center);

  m_SphereCenter[0]=3Dx;
  m_SphereCenter[1]=3Dy;
  m_SphereCenter[2]=3Dz;
  m_SphereSource->SetCenter(m_SphereCenter);

With  [x,y,x]  an initial seed chosen by the user.

Does anybody know what hapens or know how I can to locate the initial =
mesh fine?

Thanks in advance.

Sam

------=_NextPart_000_0009_01C2C625.73486890
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 6.00.2715.400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi everyBody,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have tried to use the =
deforableModel3DFilter to=20
segment the liver. The initial mesh is derived from the applying the =
Marching=20
cubes of the binary Image resulted of the confidencefilter of the image. =
The=20
results in not good because the confidence filter segmented other parts =
of the=20
image that don't&nbsp;belong to the liver.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Now I'm trying to use the =
itkBalloonForce3DFilter=20
with a Sphere as initial image and the potential image the binary image =
I=20
refered before. I'm visualizating the result and the planes sagital, =
coronal and=20
axial of the initial image with vtk.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The problem is the the final Mesh =
appears&nbsp;at=20
the origen of the image and doesn't change from the initial mesh, the =
final mesh=20
is a Sphere, I think the problem is that the initial mesh hasn't been =
located=20
well.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The code that i use to put the center =
is the=20
next:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;m_Center[0]=3D x;<BR>&nbsp; =
m_Center[1]=3D=20
y;<BR>&nbsp; m_Center[2]=3D z;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;=20
m_BalloonForce3DFilter-&gt;SetCenter(m_Center);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; m_SphereCenter[0]=3Dx;<BR>&nbsp; =

m_SphereCenter[1]=3Dy;<BR>&nbsp; m_SphereCenter[2]=3Dz;<BR>&nbsp;=20
m_SphereSource-&gt;SetCenter(m_SphereCenter);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>With&nbsp; [x,y,x]&nbsp; an initial =
seed chosen by=20
the user.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Does anybody know what hapens or know =
how I can to=20
locate the&nbsp;initial mesh&nbsp;fine?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Sam</FONT></DIV></BODY></HTML>

------=_NextPart_000_0009_01C2C625.73486890--