Hi,<br><br>i wanna write my own filter dereived from ImageToImageFilter. In GenerateData() i want to use an ImageRegionIterator, which shall get the Input of the filter:<br><br>template <class TImageType, class TOutputType><br>
void ContourArrayFilter<TImageType, TOutputType>::GenerateData()<br>{<br> typedef itk::ImageRegionIterator< TImageType > IteratorType;<br> IteratorType iterator( this->GetInput(), this->GetInput()->GetLargestPossibleRegion());<br>
//...<br>}<br><br>But this->GetInput() delivers a const Pointer while the iterator needs a normal one. So I get:<br><br>cannot convert parameter 1 from 'const itk::Image<TPixel,VImageDimension> *' to 'itk::Image<TPixel,VImageDimension> *'<br>
<br>Does anybody know how to solve the problem? I just wanna iterate the pixels of the input.<br><br><br>Refards, Michael <br><br>