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::Statistics
27{
82
83template <typename TImageType, typename THistogramFrequencyContainer = DenseFrequencyContainer2>
84class ITK_TEMPLATE_EXPORT ScalarImageToRunLengthFeaturesFilter : public ProcessObject
85{
86public:
92
94 itkOverrideGetNameOfClassMacro(ScalarImageToRunLengthFeaturesFilter);
95
97 itkNewMacro(Self);
98
99 using FrequencyContainerType = THistogramFrequencyContainer;
100 using ImageType = TImageType;
101 using ImagePointer = typename ImageType::Pointer;
102
103 using PixelType = typename ImageType::PixelType;
104 using OffsetType = typename ImageType::OffsetType;
108
110
112
114
115 // More work needs to be done to fix wrapping
116 // using RunLengthFeatureName = itk::Statistics::RunLengthFeatureEnum;
117 using RunLengthFeatureName = uint8_t;
123
126
129
132
135
139 void
141
142 const ImageType *
143 GetInput() const;
144
147 itkGetConstReferenceObjectMacro(FeatureMeans, FeatureValueVector);
148 itkGetConstReferenceObjectMacro(FeatureStandardDeviations, FeatureValueVector);
150
153 itkSetConstObjectMacro(RequestedFeatures, FeatureNameVector);
154 itkGetConstObjectMacro(RequestedFeatures, FeatureNameVector);
156
160 itkSetConstObjectMacro(Offsets, OffsetVector);
161 itkGetConstObjectMacro(Offsets, OffsetVector);
163
166 void
168
171 void
173
176 void
177 SetDistanceValueMinMax(double min, double max);
178
181 void
183
184 const ImageType *
186
189 void
191
192 itkGetConstMacro(FastCalculations, bool);
193 itkSetMacro(FastCalculations, bool);
194 itkBooleanMacro(FastCalculations);
195
196protected:
199 void
200 PrintSelf(std::ostream & os, Indent indent) const override;
201
202 void
204
205 void
207
209 void
210 GenerateData() override;
211
216
217private:
219
225};
226} // namespace itk::Statistics
227
228#ifndef ITK_MANUAL_INSTANTIATION
229# include "itkScalarImageToRunLengthFeaturesFilter.hxx"
230#endif
231
232#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....
detail::VectorContainer< std::conditional_t< std::is_void_v< T2 >, SizeValueType, T1 >, std::conditional_t< std::is_void_v< T2 >, T1, T2 > > VectorContainer