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

itkDeformationFieldJacobianDeterminantFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkDeformationFieldJacobianDeterminantFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-05-20 16:21:47 $
00007   Version:   $Revision: 1.7 $
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 __itkDeformationFieldJacobianDeterminantFilter_h
00018 #define __itkDeformationFieldJacobianDeterminantFilter_h
00019 
00020 #include "itkConstNeighborhoodIterator.h"
00021 #include "itkNeighborhoodIterator.h"
00022 #include "itkImageToImageFilter.h"
00023 #include "itkImage.h"
00024 #include "itkVector.h"
00025 #include "vnl/vnl_matrix.h"
00026 #include "vnl/vnl_det.h"
00027 
00028 //This class now inherits from itkDisplacementFieldJacobianDeterminantFilter
00029 //and simply overrides the EvaluateAtNeighborhood function.
00030 #include "itkDisplacementFieldJacobianDeterminantFilter.h"
00031 
00032 namespace itk
00033 {
00073 template < typename TInputImage,
00074            typename TRealType = float,
00075            typename TOutputImage = Image< TRealType,
00076                                           ::itk::GetImageDimension<TInputImage>::ImageDimension >
00077 >
00078 class ITK_EXPORT DeformationFieldJacobianDeterminantFilter :
00079     public DisplacementFieldJacobianDeterminantFilter< TInputImage,TRealType,TOutputImage>
00080 {
00081 public:
00083   typedef DeformationFieldJacobianDeterminantFilter Self;
00084   typedef DisplacementFieldJacobianDeterminantFilter<
00085     TInputImage,TRealType,TOutputImage>
00086                                                     Superclass;
00087   typedef SmartPointer<Self>                        Pointer;
00088   typedef SmartPointer<const Self>                  ConstPointer;
00089 
00091   itkNewMacro(Self);
00092 
00094   itkTypeMacro(DeformationFieldJacobianDeterminantFilter, DisplacementFieldJacobianDeterminantFilter);
00095 
00098   typedef typename TOutputImage::PixelType OutputPixelType;
00099   typedef typename TInputImage::PixelType  InputPixelType;
00100 
00102   typedef TInputImage                       InputImageType;
00103   typedef TOutputImage                      OutputImageType;
00104   typedef typename InputImageType::Pointer  InputImagePointer;
00105   typedef typename OutputImageType::Pointer OutputImagePointer;
00106 
00108   itkStaticConstMacro(ImageDimension, unsigned int,
00109                       TOutputImage::ImageDimension);
00110 
00112   itkStaticConstMacro(VectorDimension, unsigned int,
00113                       InputPixelType::Dimension);
00114 
00116   typedef TRealType RealType;
00117   typedef Vector<
00118     TRealType, ::itk::GetVectorDimension<InputPixelType>::VectorDimension>
00119                     RealVectorType;
00120   typedef Image<
00121     RealVectorType, ::itk::GetImageDimension<TInputImage>::ImageDimension>
00122                     RealVectorImageType;
00123 
00126   typedef ConstNeighborhoodIterator<RealVectorImageType> ConstNeighborhoodIteratorType;
00127   typedef typename ConstNeighborhoodIteratorType::RadiusType RadiusType;
00128 
00130   typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
00131 
00132   void PrintSelf(std::ostream& os, Indent indent) const;
00133   virtual TRealType EvaluateAtNeighborhood(const ConstNeighborhoodIteratorType &it) const;
00134 protected:
00135   DeformationFieldJacobianDeterminantFilter();
00136   virtual ~DeformationFieldJacobianDeterminantFilter() {}
00137 
00138 private:
00139   DeformationFieldJacobianDeterminantFilter(const Self&); //purposely not implemented
00140   void operator=(const Self&); //purposely not implemented
00141 };
00142 
00143 } // end namespace itk
00144 
00145 #ifndef ITK_MANUAL_INSTANTIATION
00146 #include "itkDeformationFieldJacobianDeterminantFilter.txx"
00147 #endif
00148 
00149 #endif
00150 

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