go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkTransformPenaltyTerm.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright UMC Utrecht and contributors
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkTransformPenaltyTerm_h
19 #define __itkTransformPenaltyTerm_h
20 
22 
23 // Needed for checking for B-spline for faster implementation
26 
27 namespace itk
28 {
44 template< class TFixedImage, class TScalarType = double >
46  public AdvancedImageToImageMetric< TFixedImage, TFixedImage >
47 {
48 public:
49 
53  TFixedImage, TFixedImage > Superclass;
55  typedef SmartPointer< const Self > ConstPointer;
56 
59 
70  // these not: use advanced transform below
71  //typedef typename Superclass::TransformType TransformType;
72  //typedef typename Superclass::TransformPointer TransformPointer;
79  typedef typename Superclass::RealType RealType;
98 
100  typedef TScalarType ScalarType; // \todo: not really meaningful name.
101 
103  typedef typename Superclass
105  typedef typename TransformType
106  ::SpatialJacobianType SpatialJacobianType;
107  typedef typename TransformType
108  ::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType;
109  typedef typename TransformType
110  ::SpatialHessianType SpatialHessianType;
111  typedef typename TransformType
112  ::JacobianOfSpatialHessianType JacobianOfSpatialHessianType;
113  typedef typename TransformType
114  ::InternalMatrixType InternalMatrixType;
115 
117  itkStaticConstMacro( FixedImageDimension, unsigned int, FixedImageType::ImageDimension );
118 
119 protected:
120 
129 
132 
135 
138  ScalarType, FixedImageDimension, 3 > BSplineTransformType;
141  ScalarType, FixedImageDimension > CombinationTransformType;
142 
144  virtual bool CheckForBSplineTransform( BSplineTransformPointer & bspline ) const;
145 
146 private:
147 
149  TransformPenaltyTerm( const Self & ); // purposely not implemented
151  void operator=( const Self & ); // purposely not implemented
152 
153 };
154 
155 } // end namespace itk
156 
157 #ifndef ITK_MANUAL_INSTANTIATION
158 #include "itkTransformPenaltyTerm.hxx"
159 #endif
160 
161 #endif // #ifndef __itkTransformPenaltyTerm_h
A cost function that calculates a penalty term on a transformation.
This class combines two transforms: an &#39;initial transform&#39; with a &#39;current transform&#39;.
Superclass::DerivativeValueType DerivativeValueType
Superclass::MovingImageIndexType MovingImageIndexType
AdvancedTransform< ScalarType, FixedImageDimension, MovingImageDimension > AdvancedTransformType
AdvancedCombinationTransform< ScalarType, FixedImageDimension > CombinationTransformType
Deformable transform using a B-spline representation.
Superclass::FixedImagePixelType FixedImagePixelType
Superclass::TransformParametersType TransformParametersType
Superclass::GradientImageType GradientImageType
Superclass::MovingImageContinuousIndexType MovingImageContinuousIndexType
Superclass::MeasureType MeasureType
Superclass::FixedImageIndexValueType FixedImageIndexValueType
An extension of the ITK ImageToImageMetric. It is the intended base class for all elastix metrics...
Superclass::MovingImageType MovingImageType
BSplineTransformType::Pointer BSplineTransformPointer
Superclass::InterpolatorType InterpolatorType
ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
AdvancedImageToImageMetric< TFixedImage, TFixedImage > Superclass
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
void operator=(const Self &)
Superclass::InputPointType InputPointType
Superclass::FixedImageRegionType FixedImageRegionType
AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
TransformType ::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType
Superclass::FixedImageMaskPointer FixedImageMaskPointer
Superclass::TransformJacobianType TransformJacobianType
Superclass::ImageSampleContainerType ImageSampleContainerType
Superclass::FixedImageMaskType FixedImageMaskType
Superclass::FixedImageIndexType FixedImageIndexType
Superclass::CoordinateRepresentationType CoordinateRepresentationType
Superclass::FixedImagePointType FixedImagePointType
Superclass::FixedImageType FixedImageType
Superclass::GradientImagePointer GradientImagePointer
Superclass::MovingImagePixelType MovingImagePixelType
TransformType ::JacobianOfSpatialHessianType JacobianOfSpatialHessianType
Superclass::GradientImageFilterType GradientImageFilterType
Superclass::InterpolatorPointer InterpolatorPointer
Superclass::GradientImageFilterPointer GradientImageFilterPointer
SmartPointer< const Self > ConstPointer
Superclass::MovingImageConstPointer MovingImageConstPointer
Superclass::ParametersType ParametersType
Superclass::OutputPointType OutputPointType
TransformType ::SpatialJacobianType SpatialJacobianType
TransformType ::InternalMatrixType InternalMatrixType
Superclass::FixedImagePointer FixedImagePointer
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
Superclass::DerivativeType DerivativeType
TransformType ::SpatialHessianType SpatialHessianType
Superclass::GradientPixelType GradientPixelType
Superclass::MovingImagePointer MovingImagePointer
Superclass ::AdvancedTransformType TransformType
Superclass::ThreadInfoType ThreadInfoType
Superclass::MovingImageMaskPointer MovingImageMaskPointer
Superclass::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
Superclass::ThreaderType ThreaderType
Superclass::MovingImagePointType MovingImagePointType
Superclass::MovingImageMaskType MovingImageMaskType
AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 3 > BSplineTransformType
Superclass::FixedImageConstPointer FixedImageConstPointer


Generated on 14-07-2017 for elastix by doxygen 1.8.13 elastix logo