go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkVectorMeanDiffusionImageFilter.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
19#ifndef itkVectorMeanDiffusionImageFilter_h
20#define itkVectorMeanDiffusionImageFilter_h
21
22#include "itkImageToImageFilter.h"
23#include "itkImage.h"
24#include "itkVector.h"
25#include "itkNumericTraits.h"
26
27#include "itkRescaleIntensityImageFilter.h"
28
29namespace itk
30{
48template <class TInputImage, class TGrayValueImage>
49class ITK_TEMPLATE_EXPORT VectorMeanDiffusionImageFilter : public ImageToImageFilter<TInputImage, TInputImage>
50{
51public:
53
55 using InputImageType = TInputImage;
56 using GrayValueImageType = TGrayValueImage;
57 using GrayValueImagePointer = typename GrayValueImageType::Pointer;
58
61 using Superclass = ImageToImageFilter<InputImageType, InputImageType>;
62 using Pointer = SmartPointer<Self>;
63 using ConstPointer = SmartPointer<const Self>;
64
66 itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
67
69 itkNewMacro(Self);
70
72 itkTypeMacro(VectorMeanDiffusionImageFilter, ImageToImageFilter);
73
75 using InputPixelType = typename InputImageType::PixelType;
76 using ValueType = typename InputPixelType::ValueType;
77 // typedef typename NumericTraits<InputPixelType>::RealType InputRealType;
78 using InputImageRegionType = typename InputImageType::RegionType;
79 using InputSizeType = typename InputImageType::SizeType;
80 using IndexType = typename InputImageType::IndexType;
81 using VectorRealType = Vector<double, Self::InputImageDimension>;
83 using DoubleImagePointer = typename DoubleImageType::Pointer;
84 using GrayValuePixelType = typename GrayValueImageType::PixelType;
85
87 using RescaleImageFilterType = RescaleIntensityImageFilter<GrayValueImageType, DoubleImageType>;
88 using RescaleImageFilterPointer = typename RescaleImageFilterType::Pointer;
89
91 itkSetMacro(Radius, InputSizeType);
92
94 itkGetConstReferenceMacro(Radius, InputSizeType);
95
103 void
105
107 itkSetMacro(NumberOfIterations, unsigned int);
108 itkGetConstMacro(NumberOfIterations, unsigned int);
109
111 void
113
114 typename GrayValueImageType::Pointer
116 {
117 return this->m_GrayValueImage.GetPointer();
118 }
119
120
121protected:
124
125 void
126 PrintSelf(std::ostream & os, Indent indent) const override;
127
139 void
140 GenerateData() override;
141
142private:
146
150
152
154 void
156};
157
158} // end namespace itk
159
160#ifndef ITK_MANUAL_INSTANTIATION
161# include "itkVectorMeanDiffusionImageFilter.hxx"
162#endif
163
164#endif // end #ifndef itkVectorMeanDiffusionImageFilter_h
Applies an averaging filter to an image.
typename InputImageType::RegionType InputImageRegionType
RescaleIntensityImageFilter< GrayValueImageType, DoubleImageType > RescaleImageFilterType
typename RescaleImageFilterType::Pointer RescaleImageFilterPointer
typename DoubleImageType::Pointer DoubleImagePointer
void PrintSelf(std::ostream &os, Indent indent) const override
~VectorMeanDiffusionImageFilter() override=default
typename InputPixelType::ValueType ValueType
Vector< double, Self::InputImageDimension > VectorRealType
typename InputImageType::IndexType IndexType
typename InputImageType::PixelType InputPixelType
typename GrayValueImageType::PixelType GrayValuePixelType
ITK_DISALLOW_COPY_AND_MOVE(VectorMeanDiffusionImageFilter)
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
ImageToImageFilter< InputImageType, InputImageType > Superclass
typename InputImageType::SizeType InputSizeType
typename GrayValueImageType::Pointer GrayValueImagePointer
void GenerateInputRequestedRegion() override
void SetGrayValueImage(GrayValueImageType *_arg)


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo