|
| 1 | +#ifndef __itkImageFilterMultipleOutputsDifferentType_h |
| 2 | +#define __itkImageFilterMultipleOutputsDifferentType_h |
| 3 | + |
| 4 | +#include "itkImageToImageFilter.h" |
| 5 | + |
| 6 | +namespace itk |
| 7 | +{ |
| 8 | +template< typename TInputImage, typename TOutputImage1, typename TOutputImage2> |
| 9 | +class ImageFilterMultipleOutputsDifferentType : public ImageToImageFilter< TInputImage, TOutputImage1 > // This doesn't actually matter, as we will be overriding the output image type in MakeOutput() |
| 10 | +{ |
| 11 | +public: |
| 12 | + /** Standard class type alias. */ |
| 13 | + using Self = ImageFilterMultipleOutputsDifferentType; |
| 14 | + using Superclass = ImageToImageFilter< TInputImage, TOutputImage1 >; |
| 15 | + using Pointer = SmartPointer< Self >; |
| 16 | + |
| 17 | + /** Method for creation through the object factory. */ |
| 18 | + itkNewMacro(Self); |
| 19 | + |
| 20 | + /** Run-time type information (and related methods). */ |
| 21 | + itkTypeMacro(ImageFilterMultipleOutputsDifferentType, ImageToImageFilter); |
| 22 | + |
| 23 | + TOutputImage1* GetOutput1(); |
| 24 | + TOutputImage2* GetOutput2(); |
| 25 | + |
| 26 | +protected: |
| 27 | + ImageFilterMultipleOutputsDifferentType(); |
| 28 | + ~ImageFilterMultipleOutputsDifferentType(){} |
| 29 | + |
| 30 | + /** Does the real work. */ |
| 31 | + virtual void GenerateData(); |
| 32 | + |
| 33 | + /** Create the Output */ |
| 34 | + DataObject::Pointer MakeOutput(unsigned int idx); |
| 35 | + |
| 36 | +private: |
| 37 | + ImageFilterMultipleOutputsDifferentType(const Self &); //purposely not implemented |
| 38 | + void operator=(const Self &); //purposely not implemented |
| 39 | + |
| 40 | +}; |
| 41 | +} //namespace ITK |
| 42 | + |
| 43 | + |
| 44 | +#ifndef ITK_MANUAL_INSTANTIATION |
| 45 | +#include "ImageFilterMultipleOutputsDifferentType.hxx" |
| 46 | +#endif |
| 47 | + |
| 48 | + |
| 49 | +#endif // __itkImageFilterMultipleOutputsDifferentType_h |
0 commit comments