ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkBSplineTransformInitializer_h 00019 #define __itkBSplineTransformInitializer_h 00020 00021 #include "itkObject.h" 00022 #include "itkObjectFactory.h" 00023 00024 namespace itk 00025 { 00036 template<class TTransform, class TImage> 00037 class ITK_EXPORT BSplineTransformInitializer 00038 : public Object 00039 { 00040 public: 00041 00043 typedef BSplineTransformInitializer Self; 00044 typedef Object Superclass; 00045 typedef SmartPointer<Self> Pointer; 00046 typedef SmartPointer<const Self> ConstPointer; 00047 00049 itkNewMacro( Self ); 00050 00052 itkTypeMacro( BSplineTransformInitializer, Object ); 00053 00055 typedef TTransform TransformType; 00056 00058 typedef TImage ImageType; 00059 typedef typename ImageType::ConstPointer ImagePointer; 00060 typedef typename ImageType::IndexType IndexType; 00061 typedef typename ImageType::PointType ImagePointType; 00062 typedef typename ImagePointType::CoordRepType ImagePointCoordRepType; 00063 00065 typedef typename TransformType::Pointer TransformPointer; 00066 typedef typename TransformType::RegionType RegionType; 00067 typedef typename RegionType::SizeType SizeType; 00068 typedef typename TransformType::SpacingType SpacingType; 00069 typedef typename TransformType::OriginType OriginType; 00070 typedef typename TransformType::DirectionType DirectionType; 00071 typedef typename TransformType::PhysicalDimensionsType PhysicalDimensionsType; 00072 typedef typename TransformType::MeshSizeType MeshSizeType; 00073 typedef typename SpacingType::ComponentType SpacingComponentType; 00074 00076 itkStaticConstMacro( SpaceDimension, unsigned int, 00077 TransformType::SpaceDimension ); 00078 00080 itkSetObjectMacro( Transform, TransformType ); 00081 00083 itkSetConstObjectMacro( Image, ImageType ); 00084 00090 void SetTransformDomainMeshSize( const MeshSizeType ); 00091 00093 virtual void InitializeTransform() const; 00094 00095 protected: 00096 BSplineTransformInitializer(); 00097 ~BSplineTransformInitializer(); 00098 00099 void PrintSelf( std::ostream & os, Indent indent ) const; 00100 00101 private: 00102 BSplineTransformInitializer( const Self & ); //purposely not 00103 // implemented 00104 void operator=( const Self & ); //purposely not 00105 // implemented 00106 00107 ImagePointer m_Image; 00108 TransformPointer m_Transform; 00109 00110 MeshSizeType m_TransformDomainMeshSize; 00111 bool m_SetTransformDomainMeshSizeViaInitializer; 00112 00113 }; //class BSplineTransformInitializer 00114 } // namespace itk 00115 00116 #ifndef ITK_MANUAL_INSTANTIATION 00117 #include "itkBSplineTransformInitializer.hxx" 00118 #endif 00119 00120 #endif /* __itkBSplineTransformInitializer_h */ 00121