ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkImageVectorOptimizerParametersHelper.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 __itkImageVectorOptimizerParametersHelper_h
00019 #define __itkImageVectorOptimizerParametersHelper_h
00020 
00021 #include "itkOptimizerParametersHelper.h"
00022 #include "itkImage.h"
00023 
00024 namespace itk
00025 {
00034 /* Can we template of Image type instead, but require that Image be of type
00035  * Image< Vector< TValueType, NVectorDimension >, VImageDimension > ? */
00036 template< typename TValueType,
00037           unsigned int NVectorDimension,
00038           unsigned int VImageDimension >
00039 class ImageVectorOptimizerParametersHelper
00040   : public OptimizerParametersHelper< TValueType >
00041 {
00042 public:
00043 
00045   typedef TValueType                                ValueType;
00046   typedef ImageVectorOptimizerParametersHelper      Self;
00047   typedef OptimizerParametersHelper< TValueType >   Superclass;
00048 
00050   typedef Image< Vector<TValueType, NVectorDimension>,
00051                  VImageDimension >
00052                                                 ParameterImageType;
00053   typedef typename ParameterImageType::Pointer  ParameterImagePointer;
00054 
00056   typedef typename Superclass::CommonContainerType CommonContainerType;
00057 
00059   ImageVectorOptimizerParametersHelper();
00060 
00066   virtual void MoveDataPointer(CommonContainerType* container,
00067                                TValueType * pointer );
00068 
00076   virtual void SetParametersObject(CommonContainerType * container,
00077                                    LightObject * );
00078 
00079   virtual ~ImageVectorOptimizerParametersHelper(){}
00080 
00081 private:
00083   ParameterImagePointer           m_ParameterImage;
00084 
00085 };
00086 
00087 }//namespace itk
00088 
00089 #if ITK_TEMPLATE_TXX
00090 #include "itkImageVectorOptimizerParametersHelper.hxx"
00091 #endif
00092 
00093 #endif
00094