[ITK-users] SimpleITK | Tolerance 4.7\itkImageToImageFilter.hxx

Bradley Lowekamp blowekamp at mail.nih.gov
Sat Apr 4 11:20:45 EDT 2015


Hello,

The method you are looking for is itk::simple::ProcessObject::SetGlobalDefaultCoordinateTolerace [1].

http://www.itk.org/SimpleITKDoxygen/html/classitk_1_1simple_1_1ProcessObject.html#a61dc7bc36a573d0f4a133bca60ed598c

Or you can always just copy the meta data from one input to the other.

Brad

On Apr 4, 2015, at 10:52 AM, Matias Montroull <matimontg at gmail.com> wrote:

> Hi,
> 
> I've ran into an issue when trying to create a checkerboard, here's the problem:
> 
> An unhandled exception of type 'System.ApplicationException' occurred in SimpleITKCSharpManaged.dll
> 
> Additional information: Exception thrown in SimpleITK CheckerBoardImageFilter_Execute: c:\d\vs9-pkg\simpleitk-build\itk-prefix\include\itk-4.7\itkImageToImageFilter.hxx:248:
> 
> itk::ERROR: CheckerBoardImageFilter(0000000038E46D40): Inputs do not occupy the same physical space! 
> 
> InputImage Origin: [-4.8500000e+002, -4.8429028e+002, 6.5235924e+001], InputImage_1 Origin: [-4.8500000e+002, -4.8429001e+002, 6.5235901e+001]
> 
> 	Tolerance: 9.4730000e-007
> 
> InputImage Spacing: [9.4730000e-001, 9.4730000e-001, 1.9692001e+000], InputImage_1 Spacing: [9.4730002e-001, 9.4730002e-001, 1.9691986e+000]
> 
> 	Tolerance: 9.4730000e-007
> 
> Any ways to solve this? I would solve it manually in ITK by changing the tolerance in the ImagetoImageFilter class but not sure how to do it in SimpleITK
> 
> Thanks,
> 
> Matias.
> _____________________________________
> 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.php
> 
> 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://public.kitware.com/mailman/listinfo/insight-users



More information about the Insight-users mailing list