ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkFirstOrderTextureFeaturesImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 itkFirstOrderTextureFeaturesImageFilter_h
19#define itkFirstOrderTextureFeaturesImageFilter_h
20
23
24namespace itk
25{
50
51template <class TInputImage, class TOutputImage, class TKernel>
52class ITK_TEMPLATE_EXPORT FirstOrderTextureFeaturesImageFilter
54 TInputImage,
55 TOutputImage,
56 TKernel,
57 typename Function::FirstOrderTextureHistogram<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
58{
59public:
60 ITK_DISALLOW_COPY_AND_MOVE(FirstOrderTextureFeaturesImageFilter);
61
65 TInputImage,
66 TOutputImage,
67 TKernel,
71
73 itkNewMacro(Self);
74
76 itkOverrideGetNameOfClassMacro(FirstOrderTextureFeaturesImageFilter);
77
79 using InputImageType = TInputImage;
80 using OutputImageType = TOutputImage;
81 using RegionType = typename TInputImage::RegionType;
82 using SizeType = typename TInputImage::SizeType;
83 using IndexType = typename TInputImage::IndexType;
84 using PixelType = typename TInputImage::PixelType;
85 using OffsetType = typename TInputImage::OffsetType;
87 using OutputPixelType = typename TOutputImage::PixelType;
88
90 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
91
92protected:
93 unsigned int
95 {
96 return 8;
97 }
98
100
101 void
103 {
104 // this methods is overloaded so that if the output image is a
105 // VectorImage then the correct number of components are set.
106
108 OutputImageType * output = this->GetOutput();
109
110 if (!output)
111 {
112 return;
113 }
114 if (output->GetNumberOfComponentsPerPixel() != this->GetNumberOfOutputComponents())
115 {
116 output->SetNumberOfComponentsPerPixel(this->GetNumberOfOutputComponents());
117 }
118 }
119
120
122};
123} // end namespace itk
124
125#endif
typename Superclass::OutputImageRegionType OutputImageRegionType
~FirstOrderTextureFeaturesImageFilter() override=default
MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, typename Function::FirstOrderTextureHistogram< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
OutputImageType * GetOutput()
typename OutputImageType::RegionType OutputImageRegionType
virtual void GenerateOutputInformation()
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....