[Insight-developers] ITKImageFunction dependecy in Transform

Matt McCormick matt.mccormick at kitware.com
Tue Aug 9 17:41:02 EDT 2011


Hi Michael,

> In rebasing the Transform changes patch set onto the latest itk master, I've
> got a dependency problem. DeformationFieldTransform
> includes itkVectorLinearInterpolateImageFunction.h, which is
> in ITKImageFunction. But adding this to Transform/itk-module.cmake causes a
> circular dependency. Any suggestions? I don't know how to handle this.

That is a difficult problem.  Moving DeformationFieldTransform to
ITKImageFunction would probably not be appropriate.  Is it possible to
use a C++ forward declaration for
VectorLinearInterpolateImageFunction?  I assume that any module
depending on ITKTransform is also likely to depend on ITKImageFunction
anyway.

> I've also had to add ITKImageFilterBase to Transform/itk-module.cmake.

What is this caused by?  I think the hope is to keep modules in the
Core group from depending on the outside modules.

CC'ing the list for any other suggestions.

Thanks,
Matt


More information about the Insight-developers mailing list