ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkBlockDiagonalMatrixVectorMultiplyImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright RTK 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 * https://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 rtkBlockDiagonalMatrixVectorMultiplyImageFilter_h
19#define rtkBlockDiagonalMatrixVectorMultiplyImageFilter_h
20
22#include "rtkMacro.h"
23
24namespace rtk
25{
34template <class TVectorImage,
35 class TMatrixImage =
36 itk::Image<itk::Vector<typename TVectorImage::PixelType::ValueType,
37 TVectorImage::PixelType::Dimension * TVectorImage::PixelType::Dimension>,
38 TVectorImage::ImageDimension>>
40 : public itk::ImageToImageFilter<TVectorImage, TVectorImage>
41{
42public:
43 ITK_DISALLOW_COPY_AND_MOVE(BlockDiagonalMatrixVectorMultiplyImageFilter);
44
49
51 itkNewMacro(Self);
52
54 itkOverrideGetNameOfClassMacro(BlockDiagonalMatrixVectorMultiplyImageFilter);
55
57 static constexpr unsigned int nChannels = TVectorImage::PixelType::Dimension;
58
60 using dataType = typename TVectorImage::PixelType::ValueType;
61
63 void
64 SetInput1(const TVectorImage * vector);
65 void
66 SetInput2(const TMatrixImage * matrix);
67
68protected:
71
72 void
74
76 void
77 DynamicThreadedGenerateData(const typename TVectorImage::RegionType & outputRegionForThread) override;
78
80 typename TVectorImage::ConstPointer
82 typename TMatrixImage::ConstPointer
84};
85} // namespace rtk
86
87
88#ifndef ITK_MANUAL_INSTANTIATION
89# include "rtkBlockDiagonalMatrixVectorMultiplyImageFilter.hxx"
90#endif
91
92#endif
Base class for filters that take an image as input and produce an image as output.
Templated n-dimensional image class.
Definition itkImage.h:89
Implements transparent reference counting.
A templated class holding a n-Dimensional vector.
Definition itkVector.h:63
void SetInput2(const TMatrixImage *matrix)
~BlockDiagonalMatrixVectorMultiplyImageFilter() override=default
void SetInput1(const TVectorImage *vector)
void DynamicThreadedGenerateData(const typename TVectorImage::RegionType &outputRegionForThread) override