ITK
4.4.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ITK
Modules
Numerics
Statistics
include
itkScalarImageToCooccurrenceListSampleFilter.h
Go to the documentation of this file.
1
/*=========================================================================
2
*
3
* Copyright Insight Software Consortium
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
* http://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
23
#include "
itkImageToListSampleFilter.h
"
24
#include "
itkSmartPointer.h
"
25
#include "
itkImageRegionIterator.h
"
26
#include "
itkShapedNeighborhoodIterator.h
"
27
#include "
itkNeighborhoodAlgorithm.h
"
28
#include "
itkConstantBoundaryCondition.h
"
29
#include "
itkFixedArray.h
"
30
31
#include <vector>
32
#include <algorithm>
33
#include <iostream>
34
35
namespace
itk
36
{
37
namespace
Statistics
38
{
50
template
<
class
TImage >
51
class
ITK_EXPORT
ScalarImageToCooccurrenceListSampleFilter
:
52
public
ProcessObject
53
{
54
public
:
55
typedef
TImage
ImageType
;
56
57
typedef
FixedArray< typename TImage::PixelType, 2 >
MeasurementVectorType
;
58
59
typedef
itk::Statistics::ListSample< MeasurementVectorType >
SampleType
;
60
typedef
typename
SampleType::MeasurementVectorSizeType
MeasurementVectorSizeType
;
61
63
typedef
ScalarImageToCooccurrenceListSampleFilter
Self
;
64
typedef
ProcessObject
Superclass
;
65
typedef
SmartPointer< Self >
Pointer
;
66
typedef
SmartPointer< const Self >
ConstPointer
;
67
69
typedef
itk::ShapedNeighborhoodIterator
<
70
TImage,
71
ConstantBoundaryCondition< TImage >
72
>
ShapedNeighborhoodIteratorType
;
73
75
typedef
typename
ShapedNeighborhoodIteratorType::OffsetType
OffsetType
;
76
typedef
std::vector< OffsetType >
OffsetTable
;
77
78
void
UseNeighbor(
const
OffsetType
& offset);
79
81
using
Superclass::SetInput;
82
void
SetInput(
const
ImageType
*image);
83
84
const
ImageType
* GetInput()
const
;
85
87
const
SampleType
* GetOutput()
const
;
88
90
itkTypeMacro(
ScalarImageToCooccurrenceListSampleFilter
,
ProcessObject
);
91
93
itkNewMacro(
Self
);
94
96
itkStaticConstMacro(MeasurementVectorSize,
unsigned
int
, 2);
97
99
itkStaticConstMacro(ImageDimension,
unsigned
int
,
100
TImage::ImageDimension);
101
102
protected
:
103
ScalarImageToCooccurrenceListSampleFilter
();
104
virtual
~ScalarImageToCooccurrenceListSampleFilter
() {}
105
void
PrintSelf(std::ostream & os,
Indent
indent)
const
;
106
107
typedef
DataObject::Pointer
DataObjectPointer
;
108
typedef
ProcessObject::DataObjectPointerArraySizeType
DataObjectPointerArraySizeType
;
109
using
Superclass::MakeOutput;
110
virtual
DataObjectPointer
MakeOutput(
DataObjectPointerArraySizeType
idx);
111
113
virtual
void
GenerateData();
114
115
private
:
116
ScalarImageToCooccurrenceListSampleFilter
(
const
Self
&);
//purposely not
117
// implemented
118
void
operator=(
const
Self
&);
//purposely not
119
// implemented
120
121
OffsetTable
m_OffsetTable
;
122
};
// end of class ScalarImageToListSampleFilter
123
}
// end of namespace Statistics
124
}
// end of namespace itk
125
126
#ifndef ITK_MANUAL_INSTANTIATION
127
#include "itkScalarImageToCooccurrenceListSampleFilter.hxx"
128
#endif
129
130
#endif
131
Generated on Mon May 13 2013 01:07:01 for ITK by
1.8.3.1