ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkAndImageFilter.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 itkAndImageFilter_h
19 #define itkAndImageFilter_h
20 
22 #include "itkBitwiseOpsFunctors.h"
23 #include "itkNumericTraits.h"
24 
25 namespace itk
26 {
27 
53 template< typename TInputImage1, typename TInputImage2 = TInputImage1, typename TOutputImage = TInputImage1 >
55  public
56  BinaryFunctorImageFilter< TInputImage1, TInputImage2, TOutputImage,
57  Functor::AND<
58  typename TInputImage1::PixelType,
59  typename TInputImage2::PixelType,
60  typename TOutputImage::PixelType > >
61 
62 {
63 public:
66  typedef BinaryFunctorImageFilter< TInputImage1, TInputImage2, TOutputImage,
68  typename TInputImage1::PixelType,
69  typename TInputImage2::PixelType,
70  typename TOutputImage::PixelType > > Superclass;
73 
75  itkNewMacro(Self);
76 
78  itkTypeMacro(AndImageFilter,
80 
81 #ifdef ITK_USE_CONCEPT_CHECKING
82  // Begin concept checking
83  itkConceptMacro( Input1Input2OutputBitwiseOperatorsCheck,
84  ( Concept::BitwiseOperators< typename TInputImage1::PixelType,
85  typename TInputImage2::PixelType,
86  typename TOutputImage::PixelType > ) );
87  // End concept checking
88 #endif
89 
90 protected:
92  virtual ~AndImageFilter() ITK_OVERRIDE {}
93 
94 private:
95  ITK_DISALLOW_COPY_AND_ASSIGN(AndImageFilter);
96 };
97 } // end namespace itk
98 
99 #endif
bitwise AND functor
Implements the AND bitwise operator pixel-wise between two images.
SmartPointer< const Self > ConstPointer
Base class for all process objects that output image data.
SmartPointer< Self > Pointer
virtual ~AndImageFilter() override
BinaryFunctorImageFilter< TInputImage1, TInputImage2, TOutputImage, Functor::AND< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > > Superclass
#define itkConceptMacro(name, concept)
Implements pixel-wise generic operation of two images, or of an image and a constant.