template <typename TImage>
void
{
output->SetRegions(input->GetLargestPossibleRegion());
output->Allocate();
while (!inputIterator.IsAtEnd())
{
outputIterator.
Set(inputIterator.Get());
++inputIterator;
++outputIterator;
}
}
int
main()
{
DeepCopy<ImageType>(image1, image2);
return 0;
}