//=========================================================================================================================
//update the output for the outputRegionForThread
template<class InputImageType, class OutputImageType>
- void ComposeVFFilter<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, int threadId )
+ void ComposeVFFilter<InputImageType, OutputImageType>::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId )
{
//Get pointer to the output
// get neighbor index and overlap fraction
- for( dim = 0; dim < 3; dim++ )
+ for( dim = 0; dim < ImageDimension; dim++ )
{
if ( upper & 1 )
{