[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> </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 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 =
Insight\Examples\Segmentation\GibbsPriorImageFilter1.cxx.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> typedef=20
itk::ImageGaussianModelEstimator<VecImageType,<BR> =20
MembershipFunctionType, ClassImageType> <BR> =20
ImageGaussianModelEstimatorType;<BR> <BR> =20
ImageGaussianModelEstimatorType::Pointer <BR> =20
applyEstimateModel =3D ImageGaussianModelEstimatorType::New(); =
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> =20
applyEstimateModel->SetNumberOfModels(3);<BR> =20
applyEstimateModel->SetInputImage(vecImage);<BR> =20
applyEstimateModel->SetTrainingImage(trainingimagereader->GetOutput=
()); =20
</FONT></DIV>
<DIV> </DIV><FONT face=3DArial size=3D2>
<DIV><BR> <BR> //Run the gaussian classifier =
algorithm<BR> =20
try<BR> {<BR> applyEstimateModel->Update();///here program =
is=20
getting exception.<BR> }<BR> catch(itk::ExceptionObject=20
&exp)<BR> {<BR> std::cerr<<"Exception=20
caught"<<std::endl;<BR> =20
std::cerr<<exp<<std::endl;<BR> }</DIV>
<DIV> </DIV>
<DIV><BR>Thanking =
you,<BR>Regards,<BR>Ramakrishna</FONT></DIV></BODY></HTML>
------=_NextPart_000_0009_01C3431F.8F230530--