RTK
2.6.0
Reconstruction Toolkit
RTK
include
rtkMultiplyByVectorImageFilter.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 rtkMultiplyByVectorImageFilter_h
19
#define rtkMultiplyByVectorImageFilter_h
20
21
#include <
itkImageToImageFilter.h
>
22
23
namespace
rtk
24
{
39
template
<
class
TInputImage>
40
class
ITK_TEMPLATE_EXPORT
MultiplyByVectorImageFilter
:
public
itk::ImageToImageFilter
<TInputImage, TInputImage>
41
{
42
public
:
43
ITK_DISALLOW_COPY_AND_MOVE(
MultiplyByVectorImageFilter
);
44
46
using
Self
=
MultiplyByVectorImageFilter
;
47
using
Superclass
=
itk::ImageToImageFilter<TInputImage, TInputImage>
;
48
using
Pointer
=
itk::SmartPointer<Self>
;
49
51
itkNewMacro(
Self
);
52
54
itkOverrideGetNameOfClassMacro(
MultiplyByVectorImageFilter
);
55
57
void
58
SetVector(std::vector<float> vect);
59
60
protected
:
61
MultiplyByVectorImageFilter
();
62
~
MultiplyByVectorImageFilter
()
override
=
default
;
63
65
void
66
DynamicThreadedGenerateData(
const
typename
TInputImage::RegionType & outputRegionForThread)
override
;
67
68
private
:
69
std::vector<float>
m_Vector
;
70
};
71
}
// namespace rtk
72
73
74
#ifndef ITK_MANUAL_INSTANTIATION
75
# include "rtkMultiplyByVectorImageFilter.hxx"
76
#endif
77
78
#endif
itk::ProcessObject
rtk
Definition:
rtkMatlabSparseMatrix.h:24
itk::ImageSource
rtk::MultiplyByVectorImageFilter
Multiplies each (n-1) dimension image by the corresponding element in a vector.
Definition:
rtkMultiplyByVectorImageFilter.h:40
rtk::MultiplyByVectorImageFilter::m_Vector
std::vector< float > m_Vector
Definition:
rtkMultiplyByVectorImageFilter.h:69
itk::ImageToImageFilter
itkImageToImageFilter.h
itk::SmartPointer< Self >
Generated on Thu Feb 6 2025 07:30:07 for RTK by
1.8.14