ITK  4.9.0
Insight Segmentation and Registration Toolkit
WikiExamples/VectorImages/VectorResampleImageFilter.cxx
#include "itkImage.h"
int main(int, char *[])
{
typedef itk::CovariantVector<double, 3> VectorType;
typedef itk::Image<VectorType, 2> VectorImageType;
VectorImageType::Pointer image = VectorImageType::New();
start.Fill(0);
size.Fill(10);
itk::ImageRegion<2> region(start,size);
image->SetRegions(region);
image->Allocate();
translation[0] = 10;
translation[1] = 20;
transform->Translate(translation);
VectorResampleFilterType::Pointer vectorResampleFilter = VectorResampleFilterType::New();
vectorResampleFilter->SetInput(image);
vectorResampleFilter->SetSize(image->GetLargestPossibleRegion().GetSize());
vectorResampleFilter->SetTransform(transform);
vectorResampleFilter->Update();
return EXIT_SUCCESS;
}