ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkImageAlgorithm.h>
Static Public Member Functions | |
template<typename InputImageType , typename OutputImageType > | |
static void | Copy (const InputImageType *inImage, OutputImageType *outImage, const typename InputImageType::RegionType &inRegion, const typename OutputImageType::RegionType &outRegion) |
A container of static functions which can operate on Images with Iterators.
These methods are modeled after the STL algorithm. They may use special optimization techniques to implement enhanced versions of the method.
Definition at line 34 of file itkImageAlgorithm.h.
static void itk::ImageAlgorithm::Copy | ( | const InputImageType * | inImage, |
OutputImageType * | outImage, | ||
const typename InputImageType::RegionType & | inRegion, | ||
const typename OutputImageType::RegionType & | outRegion | ||
) | [static] |
This generic function copies a region from one image to another. It may perform optimizations on the copy for efficiency.
This method performs the equivalent to the following:
itk::ImageRegionConstIterator<TInputImage> it( inImage, inRegion ); itk::ImageRegionIterator<TOutputImage> ot( outImage, outRegion ); while( !it.IsAtEnd() ) { ot.Set( static_cast< typename TInputImage::PixelType >( it.Get() ) ); ++ot; ++it; }