<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>Hi,<BR>
<BR>
I am trying to find how to iterate over an image using vtk. The class vtkImageIterator seems interesting but I keep getting an unresolved external error message. I tried testing the code such as given in:<BR>
<BR>
<A href="http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Filtering/Testing/Cxx/TestImageIterator.cxx?root=VTK&content-type=text/plain"><U><FONT face="Courier New" color=#800080>/Filtering/Testing/Cxx/TestImageIterator.cxx </FONT></U></A><BR>
<BR>
<BR><FONT color=#0000ff size=2>
int</FONT><FONT size=2><FONT color=#000000> ext[6] = { 0, 0, 0, 0, 0, 0 };</FONT><BR>
vtkImageData *id = vtkImageData::New();<BR>
id->SetExtent(ext);<BR>
vtkImageIterator<</FONT><FONT color=#0000ff size=2>unsigned</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>short</FONT><FONT size=2> *> *it = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> vtkImageIterator<</FONT><FONT color=#0000ff size=2>unsigned</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>short</FONT><FONT size=2> *>(id, ext);</FONT><BR>
<FONT size=2></FONT> <BR>
<BR>
The error message is the following:<BR>
<BR><FONT size=2><FONT size=2>
TPS.obj : error LNK2019: unresolved external symbol "public: __thiscall vtkImageIterator<unsigned short *>::vtkImageIterator<unsigned short *>(class vtkImageData *,int *)" (??0?$vtkImageIterator@PAG@@QAE@PAVvtkImageData@@PAH@Z) referenced in function "public: void __thiscall TPS::ExecTPS(class vtkPoints *,class vtkPoints *)" (<A href="mailto:?ExecTPS@TPS@@QAEXPAVvtkPoints@@0@Z">?ExecTPS@TPS@@QAEXPAVvtkPoints@@0@Z</A>)<BR>
<BR>
Thank you for helping out!<BR>
Pascale<BR></FONT></FONT><br /><hr /> <a href='' target='_new'></a></body>
</html>