<div dir="ltr">Thanks Bradley, it worked like a charm.<div><br></div><div>This is what I did:</div><div><b> ProcessObject.SetGlobalDefaultCoordinateTolerance(0.001);</b><br></div><div><b><br></b></div><div>Matias.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 4, 2015 at 12:20 PM, Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
The method you are looking for is itk::simple::ProcessObject::SetGlobalDefaultCoordinateTolerace [1].<br>
<br>
<a href="http://www.itk.org/SimpleITKDoxygen/html/classitk_1_1simple_1_1ProcessObject.html#a61dc7bc36a573d0f4a133bca60ed598c" target="_blank">http://www.itk.org/SimpleITKDoxygen/html/classitk_1_1simple_1_1ProcessObject.html#a61dc7bc36a573d0f4a133bca60ed598c</a><br>
<br>
Or you can always just copy the meta data from one input to the other.<br>
<br>
Brad<br>
<div><div class="h5"><br>
On Apr 4, 2015, at 10:52 AM, Matias Montroull <<a href="mailto:matimontg@gmail.com">matimontg@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> I've ran into an issue when trying to create a checkerboard, here's the problem:<br>
><br>
> An unhandled exception of type 'System.ApplicationException' occurred in SimpleITKCSharpManaged.dll<br>
><br>
> Additional information: Exception thrown in SimpleITK CheckerBoardImageFilter_Execute: c:\d\vs9-pkg\simpleitk-build\itk-prefix\include\itk-4.7\itkImageToImageFilter.hxx:248:<br>
><br>
> itk::ERROR: CheckerBoardImageFilter(0000000038E46D40): Inputs do not occupy the same physical space!<br>
><br>
> InputImage Origin: [-4.8500000e+002, -4.8429028e+002, 6.5235924e+001], InputImage_1 Origin: [-4.8500000e+002, -4.8429001e+002, 6.5235901e+001]<br>
><br>
> Tolerance: 9.4730000e-007<br>
><br>
> InputImage Spacing: [9.4730000e-001, 9.4730000e-001, 1.9692001e+000], InputImage_1 Spacing: [9.4730002e-001, 9.4730002e-001, 1.9691986e+000]<br>
><br>
> Tolerance: 9.4730000e-007<br>
><br>
> 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<br>
><br>
> Thanks,<br>
><br>
> Matias.<br>
</div></div>> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br>
</blockquote></div><br></div>