[Insight-users] Restrict image processing to a smaller region

Bradley Lowekamp blowekamp at mail.nih.gov
Wed Feb 8 12:00:03 EST 2012


Hello Christina,

I don't think you are doing anything wrong to cause the error.

What version of ITK are you using. This issue should have been addressed with the following patch:

commit 5e9563377ca7ac327d6a3b090962dd038f1df6fa
Author: Bradley Lowekamp <blowekamp at mail.nih.gov>
Date:   Tue Nov 8 08:37:41 2011 -0500

    BUG: There should not be a space contraint on Paste filter
    
    The paste image filter can work with a variety of image types,
    including having it's input images be different dimensions. As the
    user is explicity specifying the pixel corespondence between the
    source and the input images, the same physical space check performed
    in ImageToImageFilter::VerifyInputInformation is not needed.
    
    Change-Id: Ifa2b7f89d76a05faf1f48d3d909d72f2ab53903e

This patch should be included with 4.0.0 release.

Brad



On Feb 8, 2012, at 9:22 AM, Chr. Rossmanith wrote:

> Hi,
> 
> I've tried a lot to get a pipeline of RegionOfInterestImageFilter -> PasteImageFilter working. For the moment I'm leaving out the filter between ROI and Paste. It keeps failing with
> 
> terminate called after throwing an instance of 'itk::ExceptionObject'
>   what():  .../ITK/ITK-4.0.0/Modules/Core/Common/include/itkImageToImageFilter.hxx:228:
> itk::ERROR: PasteImageFilter(0x87fd350): Inputs do not occupy the same physical space! 
> InputImage Origin: [0, 0], InputImageIndexedDataObject1 Origin: [80, 60]
> 
> Could someone explain what I'm doing wrong?
> 
> Thank you,
> Christina
> 
> 
> 
> Am 03.02.2012 18:00, schrieb cagatay bilgin:
>> 
>> "Extract a portion of an image (region of interest)"
>> http://www.vtk.org/Wiki/ITK/Examples/ImageProcessing/RegionOfInterestImageFilter
>> 
>> 
>> On Fri, Feb 3, 2012 at 3:24 AM, Chr. Rossmanith <cr at neuro.ma.uni-heidelberg.de> wrote:
>> Hi,
>> 
>> I'd like to process only a subregion of an image. A search only gave http://old.nabble.com/How-to-restrict-work-region-of-filters-td5963437.html as a result. Is the ExtractRegionOfInterestFilter + PasteImageFilter approach described there still valid or is there a more elegant way?
>> 
>> Christina Rossmanith
>> -- 
>> Dept. of Neurology
>> University Medical Center Mannheim
> 
> <itkROIPlusPaste.cxx>_____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users

========================================================
Bradley Lowekamp  
Medical Science and Computing for
Office of High Performance Computing and Communications
National Library of Medicine 
blowekamp at mail.nih.gov



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120208/89bcc034/attachment.htm>


More information about the Insight-users mailing list