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 __itkPointSetToSpatialObjectDemonsRegistration_h 00019 #define __itkPointSetToSpatialObjectDemonsRegistration_h 00020 00021 #include "itkProcessObject.h" 00022 #include "itkImage.h" 00023 #include "itkPointSetToImageMetric.h" 00024 #include "itkSingleValuedNonLinearOptimizer.h" 00025 00026 namespace itk 00027 { 00052 template< typename TFixedPointSet, typename TMovingSpatialObject > 00053 class ITK_EXPORT PointSetToSpatialObjectDemonsRegistration:public ProcessObject 00054 { 00055 public: 00057 typedef PointSetToSpatialObjectDemonsRegistration Self; 00058 typedef ProcessObject Superclass; 00059 typedef SmartPointer< Self > Pointer; 00060 typedef SmartPointer< const Self > ConstPointer; 00061 00063 itkNewMacro(Self); 00064 00066 itkTypeMacro(PointSetToSpatialObjectDemonsRegistration, ProcessObject); 00067 00069 typedef TFixedPointSet FixedPointSetType; 00070 typedef typename FixedPointSetType::ConstPointer FixedPointSetConstPointer; 00071 00073 typedef TMovingSpatialObject MovingSpatialObjectType; 00074 typedef typename MovingSpatialObjectType::ConstPointer MovingSpatialObjectConstPointer; 00075 00077 void StartRegistration(void); 00078 00080 itkSetConstObjectMacro(FixedPointSet, FixedPointSetType); 00081 itkGetConstObjectMacro(FixedPointSet, FixedPointSetType); 00083 00085 itkSetConstObjectMacro(MovingSpatialObject, MovingSpatialObjectType); 00086 itkGetConstObjectMacro(MovingSpatialObject, MovingSpatialObjectType); 00087 protected: 00088 PointSetToSpatialObjectDemonsRegistration(); 00089 virtual ~PointSetToSpatialObjectDemonsRegistration() {} 00090 void PrintSelf(std::ostream & os, Indent indent) const; 00092 00093 private: 00094 PointSetToSpatialObjectDemonsRegistration(const Self &); //purposely not 00095 // implemented 00096 void operator=(const Self &); //purposely not 00097 // implemented 00098 00099 MovingSpatialObjectConstPointer m_MovingSpatialObject; 00100 FixedPointSetConstPointer m_FixedPointSet; 00101 }; 00102 } // end namespace itk 00103 00104 #ifndef ITK_MANUAL_INSTANTIATION 00105 #include "itkPointSetToSpatialObjectDemonsRegistration.hxx" 00106 #endif 00107 00108 #endif 00109