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{
48
49template <typename TImage>
51{
52public:
53 ITK_DISALLOW_COPY_AND_MOVE(ScalarImageToCooccurrenceListSampleFilter);
54
55 using ImageType = TImage;
56
58
61
67
70
73 using OffsetTable = std::vector<OffsetType>;
74
75 void
76 UseNeighbor(const OffsetType & offset);
77
80 void
81 SetInput(const ImageType * image);
82
83 const ImageType *
84 GetInput() const;
85
87 const SampleType *
88 GetOutput() const;
89
91 itkOverrideGetNameOfClassMacro(ScalarImageToCooccurrenceListSampleFilter);
92
94 itkNewMacro(Self);
95
97 static constexpr unsigned int MeasurementVectorSize = 2;
98
100 static constexpr unsigned int ImageDimension = TImage::ImageDimension;
101
102protected:
105 void
106 PrintSelf(std::ostream & os, Indent indent) const override;
107
113
115 void
116 GenerateData() override;
117
118private:
120}; // end of class ScalarImageToListSampleFilter
121} // namespace itk::Statistics
122
123#ifndef ITK_MANUAL_INSTANTIATION
124# include "itkScalarImageToCooccurrenceListSampleFilter.hxx"
125#endif
126
127#endif
Offset< VDimension > OffsetType
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
itk::ShapedNeighborhoodIterator< TImage, ConstantBoundaryCondition< TImage > > ShapedNeighborhoodIteratorType