ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkReconstructionByErosionImageFilter_h 00019 #define __itkReconstructionByErosionImageFilter_h 00020 00021 #include "itkReconstructionImageFilter.h" 00022 00023 #include "itkNumericTraits.h" 00024 00025 namespace itk 00026 { 00061 template< class TInputImage, class TOutputImage > 00062 class ITK_EXPORT ReconstructionByErosionImageFilter: 00063 public ReconstructionImageFilter< TInputImage, TOutputImage, std::less< typename TOutputImage::PixelType > > 00064 { 00065 public: 00066 typedef ReconstructionByErosionImageFilter Self; 00067 typedef ReconstructionImageFilter< 00068 TInputImage, TOutputImage, std::less< typename TOutputImage::PixelType > > Superclass; 00069 00070 typedef SmartPointer< Self > Pointer; 00071 typedef SmartPointer< const Self > ConstPointer; 00072 00074 typedef TInputImage MarkerImageType; 00075 typedef typename MarkerImageType::Pointer MarkerImagePointer; 00076 typedef typename MarkerImageType::ConstPointer MarkerImageConstPointer; 00077 typedef typename MarkerImageType::RegionType MarkerImageRegionType; 00078 typedef typename MarkerImageType::PixelType MarkerImagePixelType; 00079 typedef TInputImage MaskImageType; 00080 typedef typename MaskImageType::Pointer MaskImagePointer; 00081 typedef typename MaskImageType::ConstPointer MaskImageConstPointer; 00082 typedef typename MaskImageType::RegionType MaskImageRegionType; 00083 typedef typename MaskImageType::PixelType MaskImagePixelType; 00084 typedef TOutputImage OutputImageType; 00085 typedef typename OutputImageType::Pointer OutputImagePointer; 00086 typedef typename OutputImageType::ConstPointer OutputImageConstPointer; 00087 typedef typename OutputImageType::RegionType OutputImageRegionType; 00088 typedef typename OutputImageType::PixelType OutputImagePixelType; 00089 00091 itkStaticConstMacro(MarkerImageDimension, unsigned int, 00092 TInputImage::ImageDimension); 00093 itkStaticConstMacro(MaskImageDimension, unsigned int, 00094 TInputImage::ImageDimension); 00095 itkStaticConstMacro(OutputImageDimension, unsigned int, 00096 TOutputImage::ImageDimension); 00098 00100 itkNewMacro(Self); 00101 00103 itkTypeMacro(ReconstructionByErosionImageFilter, 00104 ReconstructionImageFilter); 00105 protected: 00106 ReconstructionByErosionImageFilter() 00107 { 00108 this->m_MarkerValue = NumericTraits< typename TOutputImage::PixelType >::max(); 00109 } 00111 00112 virtual ~ReconstructionByErosionImageFilter() {} 00113 private: 00114 ReconstructionByErosionImageFilter(const Self &); //purposely not implemented 00115 void operator=(const Self &); //purposely not implemented 00116 }; // end 00117 // 00118 // 00119 // 00120 // 00121 // ReconstructionByErosionImageFilter 00122 } 00123 00124 #endif 00125