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

itkHessianToObjectnessMeasureImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkHessianToObjectnessMeasureImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-02-25 18:52:52 $
00007   Version:   $Revision: 1.3 $
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 __itkHessianToObjectnessMeasureImageFilter_h
00018 #define __itkHessianToObjectnessMeasureImageFilter_h
00019 
00020 #include "itkSymmetricSecondRankTensor.h"
00021 #include "itkSymmetricEigenAnalysisImageFilter.h"
00022 
00023 namespace itk
00024 {
00057 template < typename TInputImage, typename TOutputImage > 
00058 class ITK_EXPORT HessianToObjectnessMeasureImageFilter : public
00059 ImageToImageFilter< TInputImage,TOutputImage>
00060 {
00061 public:
00063   typedef HessianToObjectnessMeasureImageFilter Self;
00064 
00065   typedef ImageToImageFilter< TInputImage, TOutputImage >  Superclass;
00066 
00067   typedef SmartPointer< Self >                  Pointer;
00068   typedef SmartPointer< const Self >            ConstPointer;
00069   
00070   typedef typename Superclass::InputImageType   InputImageType;
00071   typedef typename Superclass::OutputImageType  OutputImageType;
00072   typedef typename InputImageType::PixelType    InputPixelType;
00073   typedef typename OutputImageType::PixelType   OutputPixelType;
00074   
00076   itkStaticConstMacro(ImageDimension, unsigned int, ::itk::GetImageDimension<InputImageType>::ImageDimension);
00077 
00078   typedef double                                                    EigenValueType;
00079   typedef itk::FixedArray< EigenValueType, itkGetStaticConstMacro( ImageDimension ) > EigenValueArrayType;
00080   typedef itk::Image< EigenValueArrayType, itkGetStaticConstMacro( ImageDimension ) > EigenValueImageType;
00081 
00082   typedef SymmetricEigenAnalysisImageFilter< 
00083     InputImageType, EigenValueImageType >                           EigenAnalysisFilterType;
00084 
00086   itkNewMacro(Self);
00087 
00091   itkSetMacro(Alpha,double);
00092   itkGetMacro(Alpha,double);
00094 
00098   itkSetMacro(Beta,double);
00099   itkGetMacro(Beta,double);
00101 
00104   itkSetMacro(Gamma,double);
00105   itkGetMacro(Gamma,double);
00107 
00109   itkSetMacro(ScaleObjectnessMeasure,bool);
00110   itkGetMacro(ScaleObjectnessMeasure,bool);
00111   itkBooleanMacro(ScaleObjectnessMeasure);
00113 
00117   itkSetMacro(ObjectDimension,int);
00118   itkGetMacro(ObjectDimension,int);
00120 
00122   itkSetMacro(BrightObject,bool);
00123   itkGetMacro(BrightObject,bool);
00125 
00126 #ifdef ITK_USE_CONCEPT_CHECKING
00127 
00128   itkConceptMacro(DoubleConvertibleToOutputCheck,(Concept::Convertible<double, OutputPixelType>));
00129 
00131 #endif
00132 
00133 protected:
00134   HessianToObjectnessMeasureImageFilter();
00135   ~HessianToObjectnessMeasureImageFilter() {};
00136   void PrintSelf(std::ostream& os, Indent indent) const;
00137   
00139   void GenerateData(void);
00140 
00141 private:
00142   HessianToObjectnessMeasureImageFilter(const Self&); //purposely not implemented
00143   void operator=(const Self&); //purposely not implemented
00144 
00145   typename EigenAnalysisFilterType::Pointer m_SymmetricEigenValueFilter;
00146 
00147   double                 m_Alpha;
00148   double                 m_Beta;
00149   double                 m_Gamma;
00150   int                    m_ObjectDimension;
00151   bool                   m_BrightObject;
00152   bool                   m_ScaleObjectnessMeasure;
00153 };
00154 
00155 } // end namespace itk
00156 
00157 #ifndef ITK_MANUAL_INSTANTIATION
00158 #include "itkHessianToObjectnessMeasureImageFilter.txx"
00159 #endif
00160   
00161 #endif
00162 

Generated at Sat Feb 28 12:35:22 2009 for ITK by doxygen 1.5.6 written by Dimitri van Heesch, © 1997-2000