Commit 757b33da authored by Matt Clarkson's avatar Matt Clarkson

Issue #61: Ensure builds without ITK.

parent b4a3550b
......@@ -33,6 +33,7 @@ int Signum(const double& x)
}
}
#ifdef NIFTYCAL_WITH_ITK
//-----------------------------------------------------------------------------
void ComputeMonoProjectionErrors(const niftk::Model3D& model,
......@@ -522,4 +523,6 @@ void ComputeEpipolarErrors(const PointSet& leftPoints,
}
}
#endif
} // end namespace
......@@ -16,10 +16,13 @@
#define niftkCalibrationUtilities_p_h
#include "niftkNiftyCalTypes.h"
#include <itkMultipleValuedCostFunction.h>
#include <list>
#include <cv.h>
#ifdef NIFTYCAL_WITH_ITK
#include <itkMultipleValuedCostFunction.h>
#endif
namespace niftk
{
......@@ -33,6 +36,8 @@ int Signum(const double& x);
* \brief Private (as in 'deliberately not exported') utility functions.
*/
#ifdef NIFTYCAL_WITH_ITK
/**
* \brief For a single view, calculates projection errors.
*/
......@@ -194,6 +199,8 @@ void ComputeEpipolarErrors(const PointSet& leftPoints,
itk::MultipleValuedCostFunction::MeasureType& errors
);
#endif
} // end namespace
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment