LinearImageGradientFunction3D.hxx
1 /*
2  * Medical Image Registration ToolKit (MIRTK)
3  *
4  * Copyright 2013-2015 Imperial College London
5  * Copyright 2013-2015 Andreas Schuh
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 
20 #ifndef MIRTK_LinearImageGradientFunction3D_HXX
21 #define MIRTK_LinearImageGradientFunction3D_HXX
22 
23 #include "mirtk/LinearImageGradientFunction3D.h"
24 #include "mirtk/LinearImageGradientFunction.hxx"
25 
26 
27 namespace mirtk {
28 
29 
30 // -----------------------------------------------------------------------------
31 template <class TImage>
34 {
35  this->NumberOfDimensions(3);
36 }
37 
38 // -----------------------------------------------------------------------------
39 template <class TImage>
42 ::GetInside(double x, double y, double z, double t) const
43 {
44  return this->GetInside3D(x, y, z, t);
45 }
46 
47 // -----------------------------------------------------------------------------
48 template <class TImage>
51 ::GetWithPaddingInside(double x, double y, double z, double t) const
52 {
53  return this->GetWithPaddingInside3D(x, y, z, t);
54 }
55 
56 
57 } // namespace mirtk
58 
59 #endif // MIRTK_LinearImageGradientFunction3D_HXX
virtual GradientType GetWithPaddingInside(double, double, double=0, double=0) const
Definition: IOConfig.h:41
virtual GradientType GetInside(double, double, double=0, double=0) const