go home Home | Main Page | Topics | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Loading...
Searching...
No Matches
itkBSplineInterpolateVectorImageFunction.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
34#ifndef itkBSplineInterpolateVectorImageFunction_h
35#define itkBSplineInterpolateVectorImageFunction_h
36
37#include <itkVectorImage.h>
38#include <itkBSplineInterpolateImageFunction.h>
39#include <vector>
40#include <torch/torch.h>
41
42template <typename TImage, typename TInterpolator>
44{
45public:
46 using ImageType = TImage;
47 using InterpolatorType = TInterpolator;
48 using PixelType = typename ImageType::PixelType;
49
51
60 void
61 SetInputImage(typename ImageType::Pointer vectorImage);
62
71 torch::Tensor
72 Evaluate(typename ImageType::PointType point, std::vector<unsigned int> subsetOfFeatures) const;
73
85 torch::Tensor
86 EvaluateDerivative(typename ImageType::PointType point, std::vector<unsigned int> subsetOfFeatures) const;
87
88private:
89 std::vector<typename InterpolatorType::Pointer> m_Interpolators;
90};
91
92#ifndef ITK_MANUAL_INSTANTIATION
93# include "itkBSplineInterpolateVectorImageFunction.hxx"
94#endif
95
96#endif // end #ifndef itkBSplineInterpolateVectorImageFunction_h
void SetInputImage(typename ImageType::Pointer vectorImage)
Initializes one B-Spline interpolator per feature channel in the input VectorImage.
torch::Tensor Evaluate(typename ImageType::PointType point, std::vector< unsigned int > subsetOfFeatures) const
Interpolates the selected feature channels at a given physical point.
torch::Tensor EvaluateDerivative(typename ImageType::PointType point, std::vector< unsigned int > subsetOfFeatures) const
Evaluates the spatial derivative of selected features at a given point.


Generated on 1774142652 for elastix by doxygen 1.15.0 elastix logo