ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkVersorTransformOptimizer.h
Go to the documentation of this file.
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 __itkVersorTransformOptimizer_h
00019 #define __itkVersorTransformOptimizer_h
00020 
00021 #include "itkRegularStepGradientDescentOptimizer.h"
00022 #include "itkVersor.h"
00023 
00024 namespace itk
00025 {
00051 class ITK_EXPORT VersorTransformOptimizer:
00052   public RegularStepGradientDescentBaseOptimizer
00053 {
00054 public:
00056   typedef VersorTransformOptimizer                Self;
00057   typedef RegularStepGradientDescentBaseOptimizer Superclass;
00058   typedef SmartPointer< Self >                    Pointer;
00059   typedef SmartPointer< const Self >              ConstPointer;
00060 
00062   itkNewMacro(Self);
00063 
00065   itkTypeMacro(VersorTransformOptimizer,
00066                RegularStepGradientDescentBaseOptimizer);
00067 
00069   typedef Versor< double >       VersorType;
00070   typedef VersorType::VectorType VectorType;
00071 
00073   virtual void StepAlongGradient(double factor,
00074                                  const DerivativeType & transformedGradient);
00075 
00076 protected:
00077   VersorTransformOptimizer() {}
00078   virtual ~VersorTransformOptimizer() {}
00079 private:
00080   VersorTransformOptimizer(const Self &); //purposely not implemented
00081   void operator=(const Self &);           //purposely not implemented
00082 };
00083 } // end namespace itk
00084 
00085 #endif
00086