ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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
22
23namespace rtk
24{
39template <class TInputImage>
40class ITK_TEMPLATE_EXPORT MultiplyByVectorImageFilter : public itk::ImageToImageFilter<TInputImage, TInputImage>
41{
42public:
43 ITK_DISALLOW_COPY_AND_MOVE(MultiplyByVectorImageFilter);
44
49
51 itkNewMacro(Self);
52
54 itkOverrideGetNameOfClassMacro(MultiplyByVectorImageFilter);
55
57 void
58 SetVector(std::vector<float> vect);
59
60protected:
62 ~MultiplyByVectorImageFilter() override = default;
63
65 void
66 DynamicThreadedGenerateData(const typename TInputImage::RegionType & outputRegionForThread) override;
67
68private:
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
Base class for filters that take an image as input and produce an image as output.
Implements transparent reference counting.
~MultiplyByVectorImageFilter() override=default
void SetVector(std::vector< float > vect)
void DynamicThreadedGenerateData(const typename TInputImage::RegionType &outputRegionForThread) override
itk::ImageToImageFilter< TOutputImage, TOutputImage > Superclass