[Insight-users] registration and warping composite filter

Zoltan Seress seress.zoltan at gmail.com
Wed Feb 3 06:03:00 EST 2010


Hi Luis,

Some days ago I decided to rewrite my filter derived from
itk::ImageToImageFilter as you adviced. It seems to work as expected if the
filter inputs are "full" images, which means:
- the readers read the images from the disk
- filter->SetFixedImage( reader1->GetOutput() ); and filter->SetMovingImage(
reader2->GetOutput() );

But when I try to extract some regions with itk::RegionOfInterestImageFilter
and pass them as inputs for the filter, it throws an exception and gives the
following error message:
"Requested region is (at least partially) outside the largest possible
region."
The constructor and the setter methods are executed, but 'GenerateData()'
does not start at all. The regions I extract are valid regions, they were
checked.

In filter.h my setter methods are all like this:

void SetFixedImage( const FixedImageType * fImage )
  { this->ProcessObject::SetNthInput( number, const_cast< FixedImageType *
>( fImage ) );

,where FixedImageType is:
typedef typename Superclass::InputImageType FixedImageType;

Is there an obvious thing I miss?

-- 
Zoli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100203/c238772d/attachment.htm>


More information about the Insight-users mailing list