[Insight-developers] Transform module dependecy on non-core module ImageFilterBase

Matt McCormick matt.mccormick at kitware.com
Wed Aug 10 14:46:48 EDT 2011


>>> To build Transform/itkDeformationFieldTransform with the latest ITK
>>> master, I've had to add ITKImageFilterBase to
>>> Transform/itk-module.cmake. This means a core module is
>>dependent on a
>>> non-core module.
>>>
>>> This is caused by use of VectorLinearInterpolateImageFunction from
>>> ImageFilterBase, which is used with a GaussianOperator (itself in
>>> Core/Common) to perform smoothing on the deformation field after its
>>> parameters are updated.
>>
>>VectorLinearInterpolateImageFunction is in ITKImageFunction instead of
>>ITKImageFilterBase.
>
> Sorry, it's VectorNeighborhoodOperatorImageFilter that's used from
> ImageFilterBase. Copy-n-paste fail!

OK, that looks good.

>
>>>
>>> However, Transform already has two non-core dependencies in
>>> itk-module.cmake: ITKStatistics & ITKHDF5.
>>>
>>
>>Good point.  We could add ITKImageFilterBase if we really needed too
>>(it only depends on ITKCommon).
>
> Sounds find to me, but I'm not at all aware of the details of the core
> module goals.

One aim is to not build the entire toolkit if only one module is
desired.  But, if enabling a core module causes the rest of the
toolkit to build, this goal would not be achieved.  However,
ITKImageFilterBase should not do this.

Thanks,
Matt


More information about the Insight-developers mailing list