rousseau/fbrain — Issue #33: btkSliceBySliceTransform.h
Author: evangelou
Created: 2012-02-27 16:52:13+00:00
State: open

problem with compilation

n file included from /home/iordanis/Desktop/rousseau-fbrain-0e106e6/Code/Reconstruction/btkResampleImageByInjectionFilter.h:42:0,
from /home/iordanis/Desktop/rousseau-fbrain-0e106e6/Utilities/btkImageInjection.cxx:41:
/home/iordanis/Desktop/rousseau-fbrain-0e106e6/Code/Reconstruction/btkSliceBySliceTransform.h: In static member function ‘static btk::SliceBySliceTransform::Pointer btk::SliceBySliceTransform::New() [with TScalarType = double, unsigned int NDimensions = 3u, btk::SliceBySliceTransform::Pointer = itk::SmartPointer >]’:
/home/iordanis/Desktop/rousseau-fbrain-0e106e6/Utilities/btkImageInjection.cxx:262:40: instantiated from here
/home/iordanis/Desktop/rousseau-fbrain-0e106e6/Code/Reconstruction/btkSliceBySliceTransform.h:92:3: error: cannot allocate an object of abstract type ‘btk::SliceBySliceTransform’
/home/iordanis/Desktop/rousseau-fbrain-0e106e6/Code/Reconstruction/btkSliceBySliceTransform.h:55:1: note: because the following virtual functions are pure within ‘btk::SliceBySliceTransform’:
/usr/local/include/ITK-4.0/itkTransform.h:421:16: note: void itk::Transform::ComputeJacobianWithRespectToParameters(const itk::Transform::InputPointType&, itk::Transform::JacobianType&) const [with TScalarType = double, unsigned int NInputDimensions = 3u, unsigned int NOutputDimensions = 3u, itk::Transform::InputPointType = itk::Point, itk::Transform::JacobianType = itk::Array2D]
/usr/local/include/ITK-4.0/itkTransform.h:428:16: note: void itk::Transform::ComputeJacobianWithRespectToPosition(const itk::Transform::InputPointType&, itk::Transform::JacobianType&) const [with TScalarType = double, unsigned int NInputDimensions = 3u, unsigned int NOutputDimensions = 3u, itk::Transform::InputPointType = itk::Point, itk::Transform::JacobianType = itk::Array2D]
make[2]: *** [Utilities/CMakeFiles/btkImageInjection.dir/btkImageInjection.cxx.o] Error 1
make[1]: *** [Utilities/CMakeFiles/btkImageInjection.dir/all] Error 2

when i put these 2 declarations it compiles fine:

virtual void ComputeJacobianWithRespectToPosition(
const InputPointType & p,
JacobianType &j ) const
{
itkExceptionMacro("ComputeJacobianWithRespectToPosition "
"not yet implemented.");
}

virtual void ComputeJacobianWithRespectToParameters( const InputPointType &p,
JacobianType & jacobian) const
{
itkExceptionMacro("ComputeJacobianWithRespectToParameters "
"not yet implemented.");
}