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 __itkLevelSetMotionRegistrationFilter_h 00019 #define __itkLevelSetMotionRegistrationFilter_h 00020 00021 #include "itkPDEDeformableRegistrationFilter.h" 00022 #include "itkLevelSetMotionRegistrationFunction.h" 00023 00024 namespace itk 00025 { 00090 template< class TFixedImage, class TMovingImage, class TDisplacementField > 00091 class ITK_EXPORT LevelSetMotionRegistrationFilter: 00092 public PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, 00093 TDisplacementField > 00094 { 00095 public: 00097 typedef LevelSetMotionRegistrationFilter Self; 00098 typedef PDEDeformableRegistrationFilter< TFixedImage, TMovingImage, TDisplacementField > Superclass; 00099 typedef SmartPointer< Self > Pointer; 00100 typedef SmartPointer< const Self > ConstPointer; 00101 00103 itkNewMacro(Self); 00104 00106 itkTypeMacro(LevelSetMotionRegistrationFilter, 00107 PDEDeformableRegistrationFilter); 00108 00110 typedef typename Superclass::TimeStepType TimeStepType; 00111 00113 typedef typename Superclass::FixedImageType FixedImageType; 00114 typedef typename Superclass::FixedImagePointer FixedImagePointer; 00115 00117 typedef typename Superclass::MovingImageType MovingImageType; 00118 typedef typename Superclass::MovingImagePointer MovingImagePointer; 00119 00121 typedef typename Superclass::DisplacementFieldType 00122 DisplacementFieldType; 00123 typedef typename Superclass::DisplacementFieldPointer 00124 DisplacementFieldPointer; 00125 00127 typedef typename Superclass::FiniteDifferenceFunctionType 00128 FiniteDifferenceFunctionType; 00129 00131 typedef LevelSetMotionRegistrationFunction< FixedImageType, MovingImageType, 00132 DisplacementFieldType > LevelSetMotionFunctionType; 00133 00139 virtual double GetMetric() const; 00140 00147 virtual void SetAlpha(double); 00148 00149 virtual double GetAlpha() const; 00150 00155 virtual void SetIntensityDifferenceThreshold(double); 00156 00157 virtual double GetIntensityDifferenceThreshold() const; 00158 00161 virtual void SetGradientMagnitudeThreshold(double); 00162 00163 virtual double GetGradientMagnitudeThreshold() const; 00164 00177 virtual void SetGradientSmoothingStandardDeviations(double sigma); 00178 00179 virtual double GetGradientSmoothingStandardDeviations() const; 00180 00181 protected: 00182 LevelSetMotionRegistrationFilter(); 00183 ~LevelSetMotionRegistrationFilter() {} 00184 void PrintSelf(std::ostream & os, Indent indent) const; 00185 00187 virtual void InitializeIteration(); 00188 00190 virtual void ApplyUpdate(const TimeStepType& dt); 00191 00196 virtual bool Halt(); 00197 00198 private: 00199 LevelSetMotionRegistrationFilter(const Self &); //purposely not implemented 00200 void operator=(const Self &); //purposely not implemented 00201 }; 00202 } // end namespace itk 00203 00204 #ifndef ITK_MANUAL_INSTANTIATION 00205 #include "itkLevelSetMotionRegistrationFilter.hxx" 00206 #endif 00207 00208 #endif 00209