Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkMaskedScalarImageToGreyLevelCooccurrenceMatrixGenerator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMaskedScalarImageToGreyLevelCooccurrenceMatrixGenerator.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-05-20 16:21:47 $
00007   Version:   $Revision: 1.6 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkMaskedScalarImageToGreyLevelCooccurrenceMatrixGenerator_h
00018 #define __itkMaskedScalarImageToGreyLevelCooccurrenceMatrixGenerator_h
00019 
00020 #include "itkScalarImageToGreyLevelCooccurrenceMatrixGenerator.h"
00021 #include "itkMacro.h"
00022 
00023 namespace itk {
00024 namespace Statistics {
00025 
00048 template< class TImageType,
00049           class THistogramFrequencyContainer = DenseFrequencyContainer >
00050 class MaskedScalarImageToGreyLevelCooccurrenceMatrixGenerator : 
00051     public ScalarImageToGreyLevelCooccurrenceMatrixGenerator< TImageType, 
00052       THistogramFrequencyContainer >
00053 {
00054 public:
00056   typedef MaskedScalarImageToGreyLevelCooccurrenceMatrixGenerator Self;
00057   typedef ScalarImageToGreyLevelCooccurrenceMatrixGenerator< TImageType, 
00058       THistogramFrequencyContainer >                                Superclass;
00059   typedef SmartPointer<Self>                                      Pointer;
00060   typedef SmartPointer<const Self>                                ConstPointer;
00061 
00063   itkTypeMacro(MaskedScalarImageToGreyLevelCooccurrenceMatrixGenerator, Object);
00064 
00066   itkNewMacro(Self);
00067 
00068   typedef TImageType                                      ImageType;
00069   typedef typename ImageType::Pointer                     ImagePointer;
00070   typedef typename ImageType::ConstPointer                ImageConstPointer;
00071   typedef typename ImageType::PixelType                   PixelType;
00072   typedef typename ImageType::RegionType                  RegionType;
00073   typedef typename ImageType::SizeType                    RadiusType;
00074   typedef typename ImageType::OffsetType                  OffsetType;
00075   typedef VectorContainer<unsigned char, OffsetType>      OffsetVector;
00076   typedef typename OffsetVector::Pointer                  OffsetVectorPointer;
00077   typedef typename OffsetVector::ConstPointer             OffsetVectorConstPointer;
00078     
00079   typedef typename NumericTraits<PixelType>::RealType     MeasurementType;
00080     
00081   typedef Histogram< MeasurementType, 2, THistogramFrequencyContainer >
00082                                                           HistogramType;
00083   typedef typename HistogramType::Pointer                 HistogramPointer;
00084   typedef typename HistogramType::ConstPointer            HistogramConstPointer;
00085   typedef typename HistogramType::MeasurementVectorType   MeasurementVectorType;
00086     
00087 
00088        
00090   itkSetConstObjectMacro( ImageMask, ImageType );
00091   itkGetConstObjectMacro( ImageMask, ImageType );
00093 
00096   itkSetMacro( InsidePixelValue, PixelType );
00097   itkGetMacro( InsidePixelValue, PixelType );
00099 
00100 protected:
00101   MaskedScalarImageToGreyLevelCooccurrenceMatrixGenerator();
00102   virtual ~MaskedScalarImageToGreyLevelCooccurrenceMatrixGenerator() {};
00103   void PrintSelf(std::ostream& os, Indent indent) const;
00104   void FillHistogram( RadiusType radius, RegionType region );
00105   
00106 private:
00107   MaskedScalarImageToGreyLevelCooccurrenceMatrixGenerator(const Self&); //purposely not implemented
00108   void operator=(const Self&); //purposely not implemented
00109   ImageConstPointer m_ImageMask;
00110   PixelType         m_InsidePixelValue;
00111   
00112 };
00113     
00114 
00115 } // end of namespace Statistics 
00116 } // end of namespace itk 
00117 
00118 #ifndef ITK_MANUAL_INSTANTIATION
00119 #include "itkMaskedScalarImageToGreyLevelCooccurrenceMatrixGenerator.txx"
00120 #endif
00121 
00122 #endif
00123 

Generated at Tue Sep 15 03:54:02 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000