18 #ifndef __itkTwoOutputExampleImageFilter_h
19 #define __itkTwoOutputExampleImageFilter_h
20 #if !defined( ITK_LEGACY_REMOVE )
46 template<
typename TImage >
47 class 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;
122 void ThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
126 TwoOutputExampleImageFilter(
const Self &);
127 void operator=(
const Self &);
135 #ifndef ITK_MANUAL_INSTANTIATION
136 #include "itkTwoOutputExampleImageFilter.hxx"
139 #endif //#if !defined( ITK_LEGACY_REMOVE )
#define itkConceptMacro(name, concept)
unsigned int ThreadIdType
DataObject * GetOutput(const DataObjectIdentifierType &key)