ITK  4.1.0
Insight Segmentation and Registration Toolkit
itk::ImageAlgorithm Class Reference

#include <itkImageAlgorithm.h>

List of all members.

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)

Detailed Description

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.


Member Function Documentation

template<typename InputImageType , typename OutputImageType >
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;
       }

The documentation for this class was generated from the following file: