18 #ifndef itkTwoOutputExampleImageFilter_h
19 #define itkTwoOutputExampleImageFilter_h
20 #if !defined( ITK_LEGACY_REMOVE )
46 template<
typename TImage >
47 class ITK_TEMPLATE_EXPORT TwoOutputExampleImageFilter:
48 public ImageToImageFilter< TImage, TImage >
52 typedef TwoOutputExampleImageFilter Self;
61 typedef typename TImage::PixelType PixelType;
64 itkTypeMacro(TwoOutputExampleImageFilter, ImageToImageFilter);
68 itkSetMacro(OutsideValue, PixelType);
71 itkGetConstMacro(OutsideValue, PixelType);
74 void ThresholdAbove(PixelType & thresh);
77 void ThresholdBelow(PixelType & thresh);
80 void ThresholdOutside(PixelType & lower, PixelType & upper);
82 typedef typename Superclass::InputImageConstPointer InputImageConstPointer;
85 typedef TImage OutputImageType;
86 typedef typename OutputImageType::Pointer OutputImagePointer;
87 typedef typename OutputImageType::RegionType OutputImageRegionType;
88 typedef typename OutputImageType::PixelType OutputImagePixelType;
91 OutputImagePointer GetInverseOutput()
95 void SetInverseOutput(OutputImageType *output)
96 { this->SetNthOutput(1, output); }
98 #ifdef ITK_USE_CONCEPT_CHECKING
101 ( Concept::Comparable< PixelType > ) );
103 ( Concept::OStreamWritable< PixelType > ) );
108 TwoOutputExampleImageFilter();
109 ~TwoOutputExampleImageFilter() {}
110 void PrintSelf(std::ostream & os, Indent indent)
const ITK_OVERRIDE;
122 void ThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
126 ITK_DISALLOW_COPY_AND_ASSIGN(TwoOutputExampleImageFilter);
134 #ifndef ITK_MANUAL_INSTANTIATION
135 #include "itkTwoOutputExampleImageFilter.hxx"
138 #endif //#if !defined( ITK_LEGACY_REMOVE )
unsigned int ThreadIdType
#define itkConceptMacro(name, concept)
DataObject * GetOutput(const DataObjectIdentifierType &key)