ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkValuedRegionalMinimaImageFilter.h
Go to the documentation of this file.
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 __itkValuedRegionalMinimaImageFilter_h
00019 #define __itkValuedRegionalMinimaImageFilter_h
00020 
00021 #include "itkValuedRegionalExtremaImageFilter.h"
00022 #include "itkConceptChecking.h"
00023 
00024 namespace itk
00025 {
00054 template< class TInputImage, class TOutputImage >
00055 class ITK_EXPORT ValuedRegionalMinimaImageFilter:
00056   public
00057   ValuedRegionalExtremaImageFilter< TInputImage, TOutputImage,
00058                                     std::less< typename TInputImage::PixelType >,
00059                                     std::less< typename TOutputImage::PixelType >
00060                                     >
00061 {
00062 public:
00063   typedef ValuedRegionalMinimaImageFilter Self;
00064 
00065   typedef ValuedRegionalExtremaImageFilter< TInputImage, TOutputImage,
00066                                             std::less< typename TInputImage::PixelType >,
00067                                             std::less< typename TOutputImage::PixelType >  > Superclass;
00068 
00069   typedef SmartPointer< Self >       Pointer;
00070   typedef SmartPointer< const Self > ConstPointer;
00071 
00072   typedef TInputImage                        InputImageType;
00073   typedef typename InputImageType::PixelType InputImagePixelType;
00074 
00076   itkNewMacro(Self);
00077 
00079   itkTypeMacro(ValuedRegionalMinimaImageFilter,
00080                ValuedRegionalExtremaImageFilter);
00081 
00082 #ifdef ITK_USE_CONCEPT_CHECKING
00083 
00084   itkConceptMacro( InputPixelTypeComparable,
00085                    ( Concept::LessThanComparable< InputImagePixelType > ) );
00086   itkConceptMacro( InputHasPixelTraitsCheck,
00087                    ( Concept::HasPixelTraits< InputImagePixelType > ) );
00088   itkConceptMacro( InputHasNumericTraitsCheck,
00089                    ( Concept::HasNumericTraits< InputImagePixelType > ) );
00090 
00092 #endif
00093 protected:
00094   ValuedRegionalMinimaImageFilter()
00095   {
00096     this->SetMarkerValue( NumericTraits< typename TOutputImage::PixelType >::max() );
00097   }
00098 
00099   virtual ~ValuedRegionalMinimaImageFilter() {}
00100 private:
00101   ValuedRegionalMinimaImageFilter(const Self &); //purposely not implemented
00102   void operator=(const Self &);                  //purposely not implemented
00103 };                                               // end
00104                                                  // ValuedRegionalMinimaImageFilter
00105 } //end namespace itk
00106 #endif
00107