11 #ifndef __itkComposeVectorImageFilter_h 12 #define __itkComposeVectorImageFilter_h 14 #include "itkImageToImageFilter.h" 15 #include "itkVectorImage.h" 16 #include "itkImageRegionConstIterator.h" 18 #include "itkVectorIndexSelectionCastImageFilter.h" 49 template<
typename TInputImage=VectorImage<
double,3>,
typename TOutputImage=VectorImage<
typename TInputImage::PixelType, TInputImage::ImageDimension> >
51 public ImageToImageFilter< TInputImage, TOutputImage >
58 typedef ImageToImageFilter< TInputImage, TOutputImage >
Superclass;
62 itkStaticConstMacro(
Dimension,
unsigned int, TInputImage::ImageDimension);
70 void SetInput1(
const InputImageType *image1);
71 void SetInput2(
const InputImageType *image2);
72 void SetInput3(
const InputImageType *image3);
82 virtual
void ThreadedGenerateData(const RegionType & outputRegionForThread, ThreadIdType) ITK_OVERRIDE;
86 void operator=(const Self &);
101 template<typename TPixel>
105 for (
unsigned int i = 0; i < this->GetNumberOfInputs(); i++ )
107 typename InputImageType::PixelType pixel = inputItContainer[i].Get();
108 for (
int k = 0; k < pixel.Size(); ++k )
113 ++( inputItContainer[i] );
155 #if !defined(ITK_MANUAL_INSTANTIATION) && !defined(__itkComposeVectorImageFilter_hxx) std::vector< InputIteratorType > InputIteratorContainerType
virtual void GenerateOutputInformation(void) ITK_OVERRIDE
void SetInput3(const InputImageType *image3)
ComposeVectorImageFilter combine several vector images into a vector image.
static const unsigned int Dimension
SmartPointer< Self > Pointer
TOutputImage OutputImageType
TInputImage InputImageType
SmartPointer< const Self > ConstPointer
void SetInput1(const InputImageType *image1)
virtual void BeforeThreadedGenerateData() ITK_OVERRIDE
InputImageType::PixelType InputPixelType
ImageRegionConstIterator< InputImageType > InputIteratorType
virtual void ThreadedGenerateData(const RegionType &outputRegionForThread, ThreadIdType) ITK_OVERRIDE
ComposeVectorImageFilter()
ImageToImageFilter< TInputImage, TOutputImage > Superclass
void SetInput2(const InputImageType *image2)
InputImageType::RegionType RegionType
ComposeVectorImageFilter Self
OutputImageType::PixelType OutputPixelType
void ComputeOutputPixel(TPixel &pix, InputIteratorContainerType &inputItContainer)