[vtkusers] vtk image iterator
P B
chose29 at hotmail.com
Fri Jul 25 12:18:38 EDT 2008
Hi,
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:
/Filtering/Testing/Cxx/TestImageIterator.cxx
int ext[6] = { 0, 0, 0, 0, 0, 0 };
vtkImageData *id = vtkImageData::New();
id->SetExtent(ext);
vtkImageIterator<unsigned short *> *it = new vtkImageIterator<unsigned short *>(id, ext);
The error message is the following:
TPS.obj : error LNK2019: unresolved external symbol "public: __thiscall vtkImageIterator<unsigned short *>::vtkImageIterator<unsigned short *>(class vtkImageData *,int *)" (??0?$vtkImageIterator at PAG@@QAE at PAVvtkImageData@@PAH at Z) referenced in function "public: void __thiscall TPS::ExecTPS(class vtkPoints *,class vtkPoints *)" (?ExecTPS at TPS@@QAEXPAVvtkPoints@@0 at Z)
Thank you for helping out!
Pascale
_________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080725/538e8519/attachment.htm>
More information about the vtkusers
mailing list