[Insight-users] Execution Error when using RegionOfInterestImageFilter for pack of slices

Luis Ibanez luis.ibanez at kitware.com
Sat Apr 2 11:39:26 EST 2005


Hi Sotiris,


Please post a minimal example of this code, where you still
observe this behavior.  It should be as simple as taking just
the Reader with GDCM and the RegionOfIterestImageFilter and
putting them in a command line program.

You could actuall use a modified version of the example

      Insight/Examples/IO/
                DicomSeriesReadSeriesWrite.cxx


where you can remove all the writing part, and add the
RegionOfInterestImageFilter.



Thanks



     Luis


--------------------------
Sotiris Dimopoulos wrote:

> Hi !
> 
> I have a pack of dicom slices which i read,filter and
> then write the new processed images in a file.
> Everything works ok,until a throw in the pipeline the
> "RegionOfInterestImageFilter" (because i want to take
> a specific region of my slices).
> This filter is in the pipeline between a
> GDCMseriesReader and a
> "CurvatureAnisotropicDiffusionImageFilter".
> 
> So,although i get no build errors, at the execution i
> get the message :
> 
> Exception thrown while writing the series
> 
> itk::InvalidRequestedRegionError (0110F418)
> Location:
> "CurvatureAnisotropicDiffusionImageFilter::GenerateInputRequestedRegion()"
> File:
> C:\ITk2.0\Code\Common\itkFiniteDifferenceImageFilter.txx
> Line: 159
> Description: Requested region is (at least partially)
> outside the largest possible region.
> 
> Any ideas what is wrong?
> 
> Regards,
>   Sotiris
> 
> 
> 
>




More information about the Insight-users mailing list