ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkScalarImageToRunLengthFeaturesFilter.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 itkScalarImageToRunLengthFeaturesFilter_h
19#define itkScalarImageToRunLengthFeaturesFilter_h
20
22
25
26namespace itk
27{
28namespace Statistics
29{
84
85template <typename TImageType, typename THistogramFrequencyContainer = DenseFrequencyContainer2>
86class ITK_TEMPLATE_EXPORT ScalarImageToRunLengthFeaturesFilter : public ProcessObject
87{
88public:
94
96 itkOverrideGetNameOfClassMacro(ScalarImageToRunLengthFeaturesFilter);
97
99 itkNewMacro(Self);
100
101 using FrequencyContainerType = THistogramFrequencyContainer;
102 using ImageType = TImageType;
103 using ImagePointer = typename ImageType::Pointer;
104
105 using PixelType = typename ImageType::PixelType;
106 using OffsetType = typename ImageType::OffsetType;
110
112
114
116
117 // More work needs to be done to fix wrapping
118 // using RunLengthFeatureName = itk::Statistics::RunLengthFeatureEnum;
119 using RunLengthFeatureName = uint8_t;
125
128
131
134
137
141 void
143
144 const ImageType *
145 GetInput() const;
146
148 itkGetConstReferenceObjectMacro(FeatureMeans, FeatureValueVector);
149 itkGetConstReferenceObjectMacro(FeatureStandardDeviations, FeatureValueVector);
151
153 itkSetConstObjectMacro(RequestedFeatures, FeatureNameVector);
154 itkGetConstObjectMacro(RequestedFeatures, FeatureNameVector);
156
159 itkSetConstObjectMacro(Offsets, OffsetVector);
160 itkGetConstObjectMacro(Offsets, OffsetVector);
162
165 void
167
170 void
173
176 void
177 SetDistanceValueMinMax(double min, double max);
179
182 void
184
185 const ImageType *
187
190 void
192
193 itkGetConstMacro(FastCalculations, bool);
194 itkSetMacro(FastCalculations, bool);
195 itkBooleanMacro(FastCalculations);
196
197protected:
200 void
201 PrintSelf(std::ostream & os, Indent indent) const override;
202
203 void
205
206 void
208
210 void
211 GenerateData() override;
212
217
218private:
220
226};
227} // end of namespace Statistics
228} // end of namespace itk
229
230#ifndef ITK_MANUAL_INSTANTIATION
231# include "itkScalarImageToRunLengthFeaturesFilter.hxx"
232#endif
233
234#endif
Decorates any subclass of itkObject with a DataObject API.
SmartPointer< Self > Pointer
Control indentation during Print() invocation.
Definition itkIndent.h:50
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx)
Make a DataObject of the correct type to used as the specified output.
Implements transparent reference counting.
This class computes texture feature coefficients from a grey level run-length matrix.
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
void SetInsidePixelValue(PixelType insidePixelValue)
HistogramToRunLengthFeaturesFilter< HistogramType > RunLengthFeaturesFilterType
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType) override
Make a DataObject of the correct type to used as the specified output.
void PrintSelf(std::ostream &os, Indent indent) const override
VectorContainer< unsigned char, RunLengthFeatureName > FeatureNameVector
void SetPixelValueMinMax(PixelType min, PixelType max)
const FeatureValueVectorDataObjectType * GetFeatureStandardDeviationsOutput() const
ScalarImageToRunLengthMatrixFilter< ImageType, FrequencyContainerType > RunLengthMatrixFilterType
const FeatureValueVectorDataObjectType * GetFeatureMeansOutput() const
This class computes a run length matrix (histogram) from a given image and a mask image if provided....
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
detail::VectorContainer< std::conditional_t< std::is_void_v< T2 >, SizeValueType, T1 >, std::conditional_t< std::is_void_v< T2 >, T1, T2 > > VectorContainer