Skip to content

Commit

Permalink
Increased tolerance for image coordinate matrices in C3D
Browse files Browse the repository at this point in the history
  • Loading branch information
pyushkevich committed Jun 6, 2017
1 parent 3453f61 commit a38b52b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ConvertImageND.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@
// Support for regular expressions via KWSYS in ITK
#include <itksys/RegularExpression.hxx>

// Image to image filter - for some global tolerance code
#include <itkImageToImageFilter.h>

// Documentation manual
#include "Documentation.h"

Expand Down Expand Up @@ -346,6 +349,11 @@ ::ImageConverter()
// Create an interpolator
m_Interpolation = "linear";
CreateInterpolator<TPixel, VDim>(this).CreateLinear();

// Set orientation and coordinate tolerances to something more
// reasonable than the ITK defaults
itk::ImageToImageFilterCommon::SetGlobalDefaultCoordinateTolerance(1.0e-4);
itk::ImageToImageFilterCommon::SetGlobalDefaultDirectionTolerance(1.0e-4);
}


Expand Down

0 comments on commit a38b52b

Please sign in to comment.