[Insight-users] Unable to run ItkImageGaussianModelEstimator example

CSPL affable at hd2 . dot . net . in
Sat, 5 Jul 2003 18:02:12 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C3431F.8F230530
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Dear Mr.Sayan,

I want to split the objects on shape basis.The shape is convex.I have =
gone through the Itk classe ItkImageGaussianModelEstimator.I got one =
exmple to run .I want to know the output of the example.It is giving =
exception in itkImageGaussianEstimator class update function.I have set =
the parameters as follows..How to create train image.Please give me =
suggestion to run the application properly.
Example is  Insight\Examples\Segmentation\GibbsPriorImageFilter1.cxx.

  typedef itk::ImageGaussianModelEstimator<VecImageType,
    MembershipFunctionType, ClassImageType>=20
    ImageGaussianModelEstimatorType;
 =20
  ImageGaussianModelEstimatorType::Pointer=20
    applyEstimateModel =3D ImageGaussianModelEstimatorType::New(); =20

  applyEstimateModel->SetNumberOfModels(3);
  applyEstimateModel->SetInputImage(vecImage);
  =
applyEstimateModel->SetTrainingImage(trainingimagereader->GetOutput());  =



=20
  //Run the gaussian classifier algorithm
  try
  {
 applyEstimateModel->Update();///here program is getting exception.
  }
  catch(itk::ExceptionObject &exp)
  {
   std::cerr<<"Exception caught"<<std::endl;
   std::cerr<<exp<<std::endl;
  }


Thanking you,
Regards,
Ramakrishna

------=_NextPart_000_0009_01C3431F.8F230530
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.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Dear Mr.Sayan,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I want to split the objects on shape =
basis.The=20
shape is convex.I have gone through the Itk classe=20
ItkImageGaussianModelEstimator.I&nbsp;got one exmple to run .I want to =
know the=20
output of the example.It is giving exception in =
itkImageGaussianEstimator class=20
update function.I have set the parameters as follows..How to create =
train=20
image.Please give me suggestion to run the application =
properly.<BR>Example=20
is&nbsp; =
Insight\Examples\Segmentation\GibbsPriorImageFilter1.cxx.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp; typedef=20
itk::ImageGaussianModelEstimator&lt;VecImageType,<BR>&nbsp;&nbsp;&nbsp;=20
MembershipFunctionType, ClassImageType&gt; <BR>&nbsp;&nbsp;&nbsp;=20
ImageGaussianModelEstimatorType;<BR>&nbsp; <BR>&nbsp;=20
ImageGaussianModelEstimatorType::Pointer <BR>&nbsp;&nbsp;&nbsp;=20
applyEstimateModel =3D ImageGaussianModelEstimatorType::New();&nbsp; =
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;=20
applyEstimateModel-&gt;SetNumberOfModels(3);<BR>&nbsp;=20
applyEstimateModel-&gt;SetInputImage(vecImage);<BR>&nbsp;=20
applyEstimateModel-&gt;SetTrainingImage(trainingimagereader-&gt;GetOutput=
());&nbsp;=20
</FONT></DIV>
<DIV>&nbsp;</DIV><FONT face=3DArial size=3D2>
<DIV><BR>&nbsp;<BR>&nbsp; //Run the gaussian classifier =
algorithm<BR>&nbsp;=20
try<BR>&nbsp; {<BR>&nbsp;applyEstimateModel-&gt;Update();///here program =
is=20
getting exception.<BR>&nbsp; }<BR>&nbsp; catch(itk::ExceptionObject=20
&amp;exp)<BR>&nbsp; {<BR>&nbsp;&nbsp; std::cerr&lt;&lt;"Exception=20
caught"&lt;&lt;std::endl;<BR>&nbsp;&nbsp;=20
std::cerr&lt;&lt;exp&lt;&lt;std::endl;<BR>&nbsp; }</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>Thanking =
you,<BR>Regards,<BR>Ramakrishna</FONT></DIV></BODY></HTML>

------=_NextPart_000_0009_01C3431F.8F230530--