18 #ifndef __itkTwoOutputExampleImageFilter_h
19 #define __itkTwoOutputExampleImageFilter_h
20 #if !defined( ITK_LEGACY_REMOVE )
46 template<
class TImage >
47 class ITK_EXPORT TwoOutputExampleImageFilter:
48 public ImageToImageFilter< TImage, TImage >
52 typedef TwoOutputExampleImageFilter Self;
53 typedef ImageToImageFilter< TImage, TImage > Superclass;
54 typedef SmartPointer< Self > Pointer;
55 typedef SmartPointer< const Self > ConstPointer;
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 > ) );
109 TwoOutputExampleImageFilter();
110 ~TwoOutputExampleImageFilter() {}
111 void PrintSelf(std::ostream & os, Indent indent)
const;
123 void ThreadedGenerateData(
const OutputImageRegionType & outputRegionForThread,
127 TwoOutputExampleImageFilter(
const Self &);
128 void operator=(
const Self &);
136 #ifndef ITK_MANUAL_INSTANTIATION
137 #include "itkTwoOutputExampleImageFilter.hxx"
140 #endif //#if !defined( ITK_LEGACY_REMOVE )