11/* =========================================================================
2-
3- Program: Insight Segmentation & Registration Toolkit
4- Module: $RCSfile: itkSingleImageCostFunction.hxx,v $
5- Language: C++
6- Date: $Date$
7- Version: $Revision$
8-
9- Copyright (c) Insight Software Consortium. All rights reserved.
10- See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11-
12- This software is distributed WITHOUT ANY WARRANTY; without even
13- the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14- PURPOSE. See the above copyright notices for more information.
15-
16- =========================================================================*/
2+ *
3+ * Copyright Insight Software Consortium
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+ *=========================================================================*/
1718#ifndef itkSingleImageCostFunction_hxx
1819#define itkSingleImageCostFunction_hxx
1920
2324namespace itk
2425{
2526
26- template <class TImage >
27+ template <typename TImage>
2728SingleImageCostFunction<TImage>
2829::SingleImageCostFunction ()
2930{
@@ -34,7 +35,7 @@ SingleImageCostFunction<TImage>
3435}
3536
3637
37- template <class TImage >
38+ template <typename TImage>
3839void
3940SingleImageCostFunction<TImage>
4041::Initialize ()
@@ -77,7 +78,7 @@ SingleImageCostFunction<TImage>
7778/*
7879 * Get the value by interpolating the underlying image.
7980 */
80- template <class TImage >
81+ template <typename TImage>
8182typename SingleImageCostFunction<TImage>::MeasureType
8283SingleImageCostFunction<TImage>
8384::GetValue ( const ParametersType & parameters ) const
@@ -105,7 +106,7 @@ SingleImageCostFunction<TImage>
105106/*
106107 * Get the derivative by applying the gradient image function.
107108 */
108- template <class TImage >
109+ template <typename TImage>
109110void
110111SingleImageCostFunction<TImage>
111112::GetDerivative ( const ParametersType & parameters,
@@ -151,7 +152,7 @@ SingleImageCostFunction<TImage>
151152/*
152153 * PrintSelf
153154 */
154- template <class TImage >
155+ template <typename TImage>
155156void
156157SingleImageCostFunction<TImage>
157158::PrintSelf (std::ostream& os, Indent indent) const
0 commit comments