ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkScalarImageToCooccurrenceListSampleFilter.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 itkScalarImageToCooccurrenceListSampleFilter_h
19#define itkScalarImageToCooccurrenceListSampleFilter_h
20
21#include <typeinfo>
22
24#include "itkSmartPointer.h"
29#include "itkFixedArray.h"
30
31#include <vector>
32#include <algorithm>
33#include <iostream>
34
35namespace itk::Statistics
36{
47
48template <typename TImage>
50{
51public:
52 ITK_DISALLOW_COPY_AND_MOVE(ScalarImageToCooccurrenceListSampleFilter);
53
54 using ImageType = TImage;
55
57
60
66
67#ifndef ITK_LEGACY_REMOVE
69 using ShapedNeighborhoodIteratorType
70 [[deprecated("This nested type alias is obsolete; please use ShapedNeighborhoodIterator directly!")]] =
72#endif
73
75 using OffsetType = typename TImage::OffsetType;
76 using OffsetTable = std::vector<OffsetType>;
77
78 void
79 UseNeighbor(const OffsetType & offset);
80
83 void
84 SetInput(const ImageType * image);
85
86 const ImageType *
87 GetInput() const;
88
90 const SampleType *
91 GetOutput() const;
92
94 itkOverrideGetNameOfClassMacro(ScalarImageToCooccurrenceListSampleFilter);
95
97 itkNewMacro(Self);
98
100 static constexpr unsigned int MeasurementVectorSize = 2;
101
103 static constexpr unsigned int ImageDimension = TImage::ImageDimension;
104
105protected:
108 void
109 PrintSelf(std::ostream & os, Indent indent) const override;
110
116
118 void
119 GenerateData() override;
120
121private:
123}; // end of class ScalarImageToListSampleFilter
124} // namespace itk::Statistics
125
126#ifndef ITK_MANUAL_INSTANTIATION
127# include "itkScalarImageToCooccurrenceListSampleFilter.hxx"
128#endif
129
130#endif
SmartPointer< Self > Pointer
Simulate a standard C array with copy semantics.
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.
A neighborhood iterator which can take on an arbitrary shape.
Implements transparent reference counting.
This class is the native implementation of the a Sample with an STL container.
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override
Make a DataObject of the correct type to used as the specified output.
void PrintSelf(std::ostream &os, Indent indent) const override