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

itkGaussianSpatialObject.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkGaussianSpatialObject.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-04-07 14:33:58 $
00007   Version:   $Revision: 1.16 $
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 
00018 #ifndef __itkGaussianSpatialObject_h
00019 #define __itkGaussianSpatialObject_h
00020 
00021 #include "itkAffineTransform.h"
00022 #include "itkFixedArray.h"
00023 #include "itkSpatialObject.h"
00024 #include "itkEllipseSpatialObject.h"
00025 
00026 namespace itk
00027 {
00028 
00045 template < unsigned int TDimension = 3 >
00046 class ITK_EXPORT GaussianSpatialObject 
00047   : public SpatialObject< TDimension >
00048 {
00049 
00050 public:
00051 
00052   typedef GaussianSpatialObject                Self;
00053   typedef double                               ScalarType;
00054   typedef SmartPointer < Self >                Pointer;
00055   typedef SmartPointer < const Self >          ConstPointer;
00056   typedef SpatialObject< TDimension >          Superclass;
00057   typedef SmartPointer< Superclass >           SuperclassPointer;
00058   typedef typename Superclass::PointType       PointType;
00059   typedef typename Superclass::TransformType   TransformType;
00060   typedef typename Superclass::BoundingBoxType BoundingBoxType;
00061 
00062   itkStaticConstMacro(NumberOfDimensions, unsigned int,
00063                       TDimension);
00064 
00065   itkNewMacro( Self );
00066   itkTypeMacro( GaussianSpatialObject, SpatialObject );
00067 
00071   itkSetMacro(Radius,ScalarType);
00072   itkGetConstReferenceMacro(Radius,ScalarType);
00074 
00077   itkSetMacro(Sigma,ScalarType);
00078   itkGetConstReferenceMacro(Sigma,ScalarType);
00080 
00083   itkSetMacro(Maximum,ScalarType);
00084   itkGetConstReferenceMacro(Maximum,ScalarType);
00086 
00090   ScalarType SquaredZScore( const PointType& point ) const;
00091 
00093   virtual bool ValueAt( const PointType & point, ScalarType & value, 
00094                         unsigned int depth=0,
00095                         char * name=NULL) const;
00096 
00099   virtual bool IsEvaluableAt( const PointType & point, 
00100                               unsigned int depth=0,
00101                               char * name=NULL) const;
00102 
00104   virtual bool IsInside( const PointType & point,
00105                          unsigned int depth,
00106                          char * name) const;
00107 
00111   virtual bool IsInside( const PointType & point) const;
00112 
00115   virtual bool ComputeLocalBoundingBox() const;
00116 
00119   typename EllipseSpatialObject< TDimension >::Pointer GetEllipsoid() const;
00120 
00121 protected:
00122   GaussianSpatialObject(const Self&); //purposely not implemented
00123   void operator=(const Self&); //purposely not implemented
00124    
00125   GaussianSpatialObject( void );
00126   ~GaussianSpatialObject( void );
00127 
00128   ScalarType m_Maximum;
00129   ScalarType m_Radius;
00130   ScalarType m_Sigma;
00131 
00133   virtual void PrintSelf( std::ostream& os, Indent indent ) const; 
00134 
00135 };
00136 
00137 } // end namespace itk
00138 
00139 #ifndef ITK_MANUAL_INSTANTIATION
00140 #include "itkGaussianSpatialObject.txx"
00141 #endif
00142 
00143 #endif // __itkGaussianSpatialObject_h
00144 

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