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

itkBSplineDeformableTransformInitializer.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBSplineDeformableTransformInitializer.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-05-14 20:35:00 $
00007   Version:   $Revision: 1.2 $
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 __itkBSplineDeformableTransformInitializer_h
00019 #define __itkBSplineDeformableTransformInitializer_h
00020 
00021 #include "itkObject.h"
00022 #include "itkObjectFactory.h"
00023 
00024 #include <iostream>
00025 
00026 namespace itk
00027 {
00028 
00049 template < class TTransform, class TImage >
00050 class ITK_EXPORT BSplineDeformableTransformInitializer : public Object
00051 {
00052 public:
00054   typedef BSplineDeformableTransformInitializer     Self;
00055   typedef Object                                    Superclass;
00056   typedef SmartPointer<Self>                        Pointer;
00057   typedef SmartPointer<const Self>                  ConstPointer;
00058 
00060   itkNewMacro( Self );
00061 
00063   itkTypeMacro( BSplineDeformableTransformInitializer, Object );
00064 
00066   typedef TTransform                                TransformType;
00067 
00069   typedef typename TransformType::Pointer           TransformPointer;
00070   typedef typename TransformType::RegionType        TransformRegionType;
00071   typedef typename TransformRegionType::SizeType    TransformSizeType;
00072 
00073 
00075   itkStaticConstMacro(SpaceDimension, unsigned int,
00076                       TransformType::InputSpaceDimension);
00077 
00079   typedef   TImage                             ImageType;
00080   typedef   typename ImageType::ConstPointer   ImagePointer;
00081 
00082 
00084   itkSetObjectMacro( Transform,   TransformType   );
00085 
00087   itkSetConstObjectMacro( Image,  ImageType  );
00088 
00092   itkSetMacro( GridSizeInsideTheImage,  TransformSizeType  );
00093 
00100   void SetNumberOfGridNodesInsideTheImage( unsigned int numberOfNodes )
00101     {
00102     this->m_GridSizeInsideTheImage.Fill( numberOfNodes );
00103     this->Modified();
00104     }
00106 
00108   virtual void InitializeTransform() const;
00109 
00110 protected:
00111   BSplineDeformableTransformInitializer();
00112   ~BSplineDeformableTransformInitializer(){};
00113 
00114   void PrintSelf(std::ostream &os, Indent indent) const;
00115 
00116 private:
00117   BSplineDeformableTransformInitializer(const Self&); //purposely not implemented
00118   void operator=(const Self&); //purposely not implemented
00119 
00120   TransformPointer    m_Transform;
00121 
00122   ImagePointer        m_Image;
00123 
00124   TransformSizeType   m_GridSizeInsideTheImage;
00125 
00126   unsigned int        m_NumberOfGridNodesInsideTheImage;
00127 
00128 }; //class BSplineDeformableTransformInitializer
00129 
00130 
00131 }  // namespace itk
00132 
00133 
00134 #ifndef ITK_MANUAL_INSTANTIATION
00135 #include "itkBSplineDeformableTransformInitializer.txx"
00136 #endif
00137 
00138 #endif /* __itkBSplineDeformableTransformInitializer_h */
00139 

Generated at Fri Apr 16 18:00:28 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000