ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkBoxSigmaImageFilter.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 __itkBoxSigmaImageFilter_h
00019 #define __itkBoxSigmaImageFilter_h
00020 
00021 #include "itkBoxImageFilter.h"
00022 
00023 namespace itk
00024 {
00040 template< class TInputImage, class TOutputImage = TInputImage >
00041 class ITK_EXPORT BoxSigmaImageFilter:
00042   public BoxImageFilter< TInputImage, TOutputImage >
00043 {
00044 public:
00046   typedef BoxSigmaImageFilter                         Self;
00047   typedef BoxImageFilter< TInputImage, TOutputImage > Superclass;
00048   typedef SmartPointer< Self >                        Pointer;
00049   typedef SmartPointer< const Self >                  ConstPointer;
00050 
00052   itkNewMacro(Self);
00053 
00055   itkTypeMacro(BoxSigmaImageFilter, BoxImageFilter);
00056 
00058   typedef TInputImage                                InputImageType;
00059   typedef TOutputImage                               OutputImageType;
00060   typedef typename TInputImage::RegionType           RegionType;
00061   typedef typename TInputImage::SizeType             SizeType;
00062   typedef typename TInputImage::IndexType            IndexType;
00063   typedef typename TInputImage::PixelType            PixelType;
00064   typedef typename TInputImage::OffsetType           OffsetType;
00065   typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
00066   typedef typename TOutputImage::PixelType           OutputPixelType;
00067 
00069   itkStaticConstMacro(OutputImageDimension, unsigned int,
00070                       TOutputImage::ImageDimension);
00071   itkStaticConstMacro(InputImageDimension, unsigned int,
00072                       TInputImage::ImageDimension);
00074 
00075 #ifdef ITK_USE_CONCEPT_CHECKING
00076 
00077   itkConceptMacro( SameDimension,
00078                    ( Concept::SameDimension< itkGetStaticConstMacro(InputImageDimension),
00079                                              itkGetStaticConstMacro(OutputImageDimension) > ) );
00080 
00082 #endif
00083 protected:
00084   BoxSigmaImageFilter();
00085   ~BoxSigmaImageFilter() {}
00086 
00088   void  ThreadedGenerateData(const OutputImageRegionType &
00089                              outputRegionForThread,
00090                              ThreadIdType threadId);
00091 
00092 private:
00093   BoxSigmaImageFilter(const Self &); //purposely not implemented
00094   void operator=(const Self &);      //purposely not implemented
00095 };                                   // end of class
00096 } // end namespace itk
00097 
00098 #ifndef ITK_MANUAL_INSTANTIATION
00099 #include "itkBoxSigmaImageFilter.hxx"
00100 #endif
00101 
00102 #endif
00103