ITK  4.2.0
Insight Segmentation and Registration Toolkit
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 
24 #include "itkSmartPointer.h"
25 #include "itkImageRegionIterator.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 >
52  public ProcessObject
53 {
54 public:
55  typedef TImage ImageType;
56 
58 
61 
67 
70  TImage,
73 
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 
91 
93  itkNewMacro(Self);
94 
96  itkStaticConstMacro(MeasurementVectorSize, unsigned int, 2);
97 
99  itkStaticConstMacro(ImageDimension, unsigned int,
100  TImage::ImageDimension);
101 protected:
104  void PrintSelf(std::ostream & os, Indent indent) const;
106 
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 
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