ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkRegionalMaximaImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkRegionalMaximaImageFilter_h
19 #define itkRegionalMaximaImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
53 template< typename TInputImage, typename TOutputImage >
55  public ImageToImageFilter< TInputImage, TOutputImage >
56 {
57 public:
60 
62 
65 
67  typedef TInputImage InputImageType;
68  typedef TOutputImage OutputImageType;
69  typedef typename InputImageType::Pointer InputImagePointer;
70  typedef typename InputImageType::ConstPointer InputImageConstPointer;
71  typedef typename InputImageType::RegionType InputImageRegionType;
72  typedef typename InputImageType::PixelType InputImagePixelType;
73  typedef typename OutputImageType::Pointer OutputImagePointer;
74  typedef typename OutputImageType::ConstPointer OutputImageConstPointer;
75  typedef typename OutputImageType::RegionType OutputImageRegionType;
76  typedef typename OutputImageType::PixelType OutputImagePixelType;
77 
79  itkStaticConstMacro(InputImageDimension, unsigned int,
80  TInputImage::ImageDimension);
81  itkStaticConstMacro(OutputImageDimension, unsigned int,
82  TOutputImage::ImageDimension);
84 
86  itkNewMacro(Self);
87 
90 
97  itkSetMacro(FullyConnected, bool);
98  itkGetConstMacro(FullyConnected, bool);
99  itkBooleanMacro(FullyConnected);
101 
106  itkSetMacro(ForegroundValue, OutputImagePixelType);
107  itkGetConstMacro(ForegroundValue, OutputImagePixelType);
109 
114  itkSetMacro(BackgroundValue, OutputImagePixelType);
115  itkGetConstMacro(BackgroundValue, OutputImagePixelType);
117 
122  itkSetMacro(FlatIsMaxima, bool);
123  itkGetConstMacro(FlatIsMaxima, bool);
124  itkBooleanMacro(FlatIsMaxima);
126 
127 #ifdef ITK_USE_CONCEPT_CHECKING
128  // Begin concept checking
129  itkConceptMacro( InputHasPixelTraitsCheck,
131  itkConceptMacro( InputHasNumericTraitsCheck,
133  // End concept checking
134 #endif
135 
136 protected:
139  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
140 
144  void GenerateInputRequestedRegion() ITK_OVERRIDE;
145 
147  void EnlargeOutputRequestedRegion( DataObject *itkNotUsed(output) ) ITK_OVERRIDE;
148 
151  void GenerateData() ITK_OVERRIDE;
152 
153 private:
154  RegionalMaximaImageFilter(const Self &) ITK_DELETE_FUNCTION;
155  void operator=(const Self &) ITK_DELETE_FUNCTION;
156 
161 }; // end of class
162 } // end namespace itk
163 
164 #ifndef ITK_MANUAL_INSTANTIATION
165 #include "itkRegionalMaximaImageFilter.hxx"
166 #endif
167 
168 #endif
void PrintSelf(std::ostream &os, Indent indent) const override
InputImageType::RegionType InputImageRegionType
static const unsigned int OutputImageDimension
InputImageType::PixelType InputImagePixelType
Base class for all process objects that output image data.
OutputImageType::RegionType OutputImageRegionType
static const unsigned int InputImageDimension
InputImageType::ConstPointer InputImageConstPointer
ImageToImageFilter< TInputImage, TOutputImage > Superclass
void GenerateInputRequestedRegion() override
OutputImageType::ConstPointer OutputImageConstPointer
OutputImageType::PixelType OutputImagePixelType
OutputImageType::PixelType OutputImagePixelType
Base class for filters that take an image as input and produce an image as output.
Produce a binary image where foreground is the regional maxima of the input image.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)
Base class for all data objects in ITK.
void EnlargeOutputRequestedRegion(DataObject *) override