[Insight-users] Problems with itkImageClassifier and itkGaussianClassifier

Samuel Rodríguez Bescos srodrigu at gbt . tfo . upm . es
Tue, 6 Aug 2002 17:21:35 +0200


This is a multi-part message in MIME format.

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

Hello every body,
I'm developing a single example based in Gibbs prior segmentation for =
grey scale images.
I follow the steps of Dimtris Metaxas and Ting Chen but for grey scale =
image and  I have the next error:

(149) : error C2664: 'SetClassifier' : cannot convert parameter 1 from =
'class itk::SmartPointer<class itk::GaussianSupervisedClassifier<c
lass itk::Image<class itk::Vector<unsigned short,1>,2>,class =
itk::Image<unsigned short,2> > >' to 'class itk::SmartPointer<class =
itk::ImageClassifierBase<class itk::Image<class itk::Vector<unsigned =
short,1>,2>,class itk::Image<unsigned short,2> > >'
        No constructor could take the source type, or constructor =
overload resolution was ambiguous
Error executing cl.exe.

I'm using one of the last version of Insight in order to use the =
itkScalarToArrayCastImageFilter. So I imported the classes related with =
the itkGaussianSupervisedClassifierm from previous version. Has anybody =
any idea about what is happening?

If I can't find the problem. Could anybody tell me what class I can use =
to first estimation to set in the GibbsPriorFilter instead of gaussian =
Supervised Classifier?.

Thanks for reading to the end.

Samuel



------=_NextPart_000_001B_01C23D6D.B78BB070
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>Hello every body,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'm developing a single example based =
in Gibbs=20
prior segmentation for grey scale images.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I follow the steps of Dimtris =
Metaxas&nbsp;and Ting=20
Chen but for grey scale image and &nbsp;I have the next =
error:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><EM>(149) : error C2664: =
'SetClassifier' : cannot=20
convert parameter 1 from 'class itk::SmartPointer&lt;class=20
itk::GaussianSupervisedClassifier&lt;c<BR>lass itk::Image&lt;class=20
itk::Vector&lt;unsigned short,1&gt;,2&gt;,class itk::Image&lt;unsigned=20
short,2&gt; &gt; &gt;' to 'class itk::SmartPointer&lt;class=20
itk::ImageClassifierBase&lt;class itk::Image&lt;class =
itk::Vector&lt;unsigned=20
short,1&gt;,2&gt;,class itk::Image&lt;unsigned short,2&gt; &gt;=20
&gt;'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; No constructor could =
take=20
the source type, or constructor overload resolution was =
ambiguous<BR>Error=20
executing cl.exe.</EM></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><EM></EM></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm using one of the&nbsp;last version =
of Insight=20
in order to use the itkScalarToArrayCastImageFilter. So I imported the =
classes=20
related with the itkGaussianSupervisedClassifierm from previous version. =
Has=20
anybody any idea about what is happening?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If I can't find the problem. Could =
anybody tell me=20
what class I can use to first estimation to set in =
the&nbsp;GibbsPriorFilter=20
instead of gaussian Supervised Classifier?.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for reading to the =
end.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Samuel</DIV>
<DIV><EM><BR></EM></DIV></FONT></BODY></HTML>

------=_NextPart_000_001B_01C23D6D.B78BB070--