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