ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkVersorRigid3DTransformOptimizer.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 __itkVersorRigid3DTransformOptimizer_h
00019 #define __itkVersorRigid3DTransformOptimizer_h
00020 
00021 #include "itkRegularStepGradientDescentOptimizer.h"
00022 #include "itkVersor.h"
00023 
00024 namespace itk
00025 {
00050 class ITK_EXPORT VersorRigid3DTransformOptimizer:
00051   public RegularStepGradientDescentBaseOptimizer
00052 {
00053 public:
00055   typedef VersorRigid3DTransformOptimizer         Self;
00056   typedef RegularStepGradientDescentBaseOptimizer Superclass;
00057   typedef SmartPointer< Self >                    Pointer;
00058   typedef SmartPointer< const Self >              ConstPointer;
00059 
00061   itkNewMacro(Self);
00062 
00064   itkTypeMacro(VersorRigid3DTransformOptimizer,
00065                RegularStepGradientDescentBaseOptimizer);
00066 
00068   itkStaticConstMacro(SpaceDimension, unsigned int, 6);
00069 
00071   typedef Versor< double >       VersorType;
00072   typedef VersorType::VectorType VectorType;
00073 
00075   virtual void StepAlongGradient(double factor,
00076                                  const DerivativeType & transformedGradient);
00077 
00078 protected:
00079   VersorRigid3DTransformOptimizer() {}
00080   virtual ~VersorRigid3DTransformOptimizer() {}
00081 private:
00082   VersorRigid3DTransformOptimizer(const Self &); //purposely not implemented
00083   void operator=(const Self &);                  //purposely not implemented
00084 };
00085 } // end namespace itk
00086 
00087 #endif
00088