ITK  5.1.0
Insight Toolkit
itkLabelGeometryImageFilter.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  * 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 itkLabelGeometryImageFilter_h
19 #define itkLabelGeometryImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 #include "itkNumericTraits.h"
23 #include "itkArray.h"
25 #include <map>
26 #include <vector>
27 #include "vnl/algo/vnl_symmetric_eigensystem.h"
28 #include "vnl/vnl_det.h"
29 #include "itkMath.h"
30 
31 namespace itk
32 {
76 template <typename TLabelImage, typename TIntensityImage = TLabelImage>
77 class ITK_TEMPLATE_EXPORT LabelGeometryImageFilter : public ImageToImageFilter<TLabelImage, TIntensityImage>
78 {
79 public:
80  ITK_DISALLOW_COPY_AND_ASSIGN(LabelGeometryImageFilter);
81 
87 
89  itkNewMacro(Self);
90 
93 
95  using IntensityImageType = TIntensityImage;
96  using InputImagePointer = typename TIntensityImage::Pointer;
100  using PixelType = typename TIntensityImage::PixelType;
101 
103  using LabelImageType = TLabelImage;
104  using LabelImagePointer = typename TLabelImage::Pointer;
108  using LabelPixelType = typename TLabelImage::PixelType;
110 
112  static constexpr unsigned int ImageDimension = TLabelImage::ImageDimension;
113 
116 
119 
122 
126 
127  // using BoundingBoxVerticesType = itk::FixedArray<
128  // LabelPointType,std::pow(2.0,Self::ImageDimension)>;
129  using BoundingBoxVerticesType = std::vector<LabelPointType>;
130 
133 
136 
138  using LabelsType = std::vector<LabelPixelType>;
139 
141  using LabelIndicesType = std::vector<LabelIndexType>;
142 
144  using VectorType = std::vector<double>;
145 
147  using MatrixType = vnl_matrix<double>;
148 
154  {
155  public:
156  // default constructor
158  {
159  // initialized to the default values
160  this->m_Label = 0;
161  this->m_Sum = NumericTraits<RealType>::ZeroValue();
162 
163  const unsigned int imageDimension = Self::ImageDimension;
164 
165  // m_BoundingBox.resize(imageDimension*2);
166  for (unsigned int i = 0; i < imageDimension * 2; i += 2)
167  {
170  }
171 
172  m_BoundingBoxVolume = 0;
173  m_BoundingBoxSize.Fill(0);
174  m_PixelIndices.clear();
175  m_Centroid.Fill(0);
176  m_WeightedCentroid.Fill(0);
177  m_ZeroOrderMoment = 0;
178  m_FirstOrderRawMoments.Fill(0);
179  m_FirstOrderWeightedRawMoments.Fill(0);
180  m_Eigenvalues.resize(ImageDimension);
181  m_Eigenvalues.clear();
182  m_Eigenvectors.set_size(ImageDimension, ImageDimension);
183  m_Eigenvectors.fill(0);
184  m_AxesLength.Fill(0);
185  m_Eccentricity = 1;
186  m_Elongation = 1;
187  m_Orientation = 0;
188  LabelPointType emptyPoint;
189  emptyPoint.Fill(0);
190  unsigned int numberOfVertices = 1 << ImageDimension;
191  m_OrientedBoundingBoxVertices.resize(numberOfVertices, emptyPoint);
192  m_OrientedBoundingBoxVolume = 0;
193  m_OrientedBoundingBoxSize.Fill(0);
194  m_OrientedLabelImage = LabelImageType::New();
195  m_OrientedIntensityImage = IntensityImageType::New();
196  m_OrientedBoundingBoxOrigin.Fill(0);
197  m_RotationMatrix.set_size(ImageDimension, ImageDimension);
198  m_RotationMatrix.fill(0.0);
199 
200  m_SecondOrderRawMoments.set_size(ImageDimension, ImageDimension);
201  m_SecondOrderCentralMoments.set_size(ImageDimension, ImageDimension);
202  for (unsigned int i = 0; i < ImageDimension; i++)
203  {
204  for (unsigned int j = 0; j < ImageDimension; j++)
205  {
206  m_SecondOrderRawMoments(i, j) = 0;
207  m_SecondOrderCentralMoments(i, j) = 0;
208  }
209  }
210  }
211 
236  typename LabelImageType::Pointer m_OrientedLabelImage;
237  typename IntensityImageType::Pointer m_OrientedIntensityImage;
240  };
241 
243  // Map from the label to the class storing all of the geometry information.
244  using MapType = std::map<LabelPixelType, LabelGeometry>;
245  using MapIterator = typename std::map<LabelPixelType, LabelGeometry>::iterator;
246  using MapConstIterator = typename std::map<LabelPixelType, LabelGeometry>::const_iterator;
247 
248  // Macros for enabling the calculation of additional features.
249  itkGetMacro(CalculatePixelIndices, bool);
250  itkBooleanMacro(CalculatePixelIndices);
251  void
252  SetCalculatePixelIndices(const bool value)
253  {
254  // CalculateOrientedBoundingBox, CalculateOrientedLabelImage, and
255  // CalculateOrientedIntensityImage all need CalculatePixelIndices to be
256  // turned
257  // on if they are turned on. So, CalculatePixelIndices cannot be
258  // turned off if any of these flags are turned on.
259  if (value == false)
260  {
261  if ((this->m_CalculateOrientedBoundingBox == true) || (this->m_CalculateOrientedLabelRegions == true) ||
262  (this->m_CalculateOrientedIntensityRegions == true))
263  {
264  // We cannot change the value, so return.
265  return;
266  }
267  }
268 
269  if (this->m_CalculatePixelIndices != value)
270  {
271  this->m_CalculatePixelIndices = value;
272  this->Modified();
273  }
274  }
275 
276  itkGetMacro(CalculateOrientedBoundingBox, bool);
277  itkBooleanMacro(CalculateOrientedBoundingBox);
278  void
280  {
281  if (this->m_CalculateOrientedBoundingBox != value)
282  {
283  this->m_CalculateOrientedBoundingBox = value;
284  this->Modified();
285  }
286 
287  // CalculateOrientedBoundingBox needs
288  // CalculatePixelIndices to be turned on.
289  if (value == true)
290  {
291  this->SetCalculatePixelIndices(true);
292  }
293  }
294 
295  itkGetMacro(CalculateOrientedLabelRegions, bool);
296  itkBooleanMacro(CalculateOrientedLabelRegions);
297  void
299  {
300  if (this->m_CalculateOrientedLabelRegions != value)
301  {
302  this->m_CalculateOrientedLabelRegions = value;
303  this->Modified();
304 
305  // CalculateOrientedLabelImage needs
306  // CalculateOrientedBoundingBox to be turned on.
307  if (value == true)
308  {
309  SetCalculateOrientedBoundingBox(true);
310  }
311  }
312  }
313 
314  itkGetMacro(CalculateOrientedIntensityRegions, bool);
315  itkBooleanMacro(CalculateOrientedIntensityRegions);
316  void
318  {
319  if (this->m_CalculateOrientedIntensityRegions != value)
320  {
321  this->m_CalculateOrientedIntensityRegions = value;
322  this->Modified();
323 
324  // CalculateOrientedIntensityImage needs
325  // CalculateOrientedBoundingBox to be turned on.
326  if (value == true)
327  {
328  this->SetCalculateOrientedBoundingBox(true);
329  }
330  }
331  }
332 
334  void
335  SetIntensityInput(const TIntensityImage * input)
336  {
337  // Process object is not const-correct so the const casting is required.
338  this->SetNthInput(1, const_cast<TIntensityImage *>(input));
339  }
340 
342  const TIntensityImage *
344  {
345  return static_cast<TIntensityImage *>(const_cast<DataObject *>(this->ProcessObject::GetInput(1)));
346  }
347 
350  bool
352  {
353  return m_LabelGeometryMapper.find(label) != m_LabelGeometryMapper.end();
354  }
355 
359  {
360  return m_LabelGeometryMapper.size();
361  }
362 
365  {
366  return this->GetNumberOfObjects();
367  }
368 
370  std::vector<LabelPixelType>
371  GetLabels() const
372  {
373  return m_AllLabels;
374  }
375 
377  LabelIndicesType
378  GetPixelIndices(LabelPixelType label) const;
379 
383  GetVolume(LabelPixelType label) const;
384 
386  // std::vector< SizeValueType > GetAllCounts() const;
387 
389  RealType
390  GetIntegratedIntensity(LabelPixelType label) const;
391 
393  LabelPointType
394  GetCentroid(LabelPixelType label) const;
395 
397  LabelPointType
398  GetWeightedCentroid(LabelPixelType label) const;
399 
401  VectorType
402  GetEigenvalues(LabelPixelType label) const;
403 
405  MatrixType
406  GetEigenvectors(LabelPixelType label) const;
407 
409  AxesLengthType
410  GetAxesLength(LabelPixelType label) const;
411 
414  RealType
415  GetMinorAxisLength(LabelPixelType label) const;
416 
419  RealType
420  GetMajorAxisLength(LabelPixelType label) const;
421 
423  RealType
424  GetEccentricity(LabelPixelType label) const;
425 
428  RealType
429  GetElongation(LabelPixelType label) const;
430 
432  RealType
433  GetOrientation(LabelPixelType label) const;
434 
438  BoundingBoxType
439  GetBoundingBox(LabelPixelType label) const;
440 
442  RealType
443  GetBoundingBoxVolume(LabelPixelType label) const;
444 
446  LabelSizeType
447  GetBoundingBoxSize(LabelPixelType label) const;
448 
455  BoundingBoxVerticesType
456  GetOrientedBoundingBoxVertices(LabelPixelType label) const;
457 
459  RealType
460  GetOrientedBoundingBoxVolume(LabelPixelType label) const;
461 
463  LabelPointType
464  GetOrientedBoundingBoxSize(LabelPixelType label) const;
465 
467  LabelPointType
468  GetOrientedBoundingBoxOrigin(LabelPixelType label) const;
469 
472  MatrixType
473  GetRotationMatrix(LabelPixelType label) const;
474 
476  RegionType
477  GetRegion(LabelPixelType label) const;
478 
480  TLabelImage *
481  GetOrientedLabelImage(LabelPixelType label) const;
482 
485  TIntensityImage *
486  GetOrientedIntensityImage(LabelPixelType label) const;
487 
488 #ifdef ITK_USE_CONCEPT_CHECKING
489  // Begin concept checking
490  itkConceptMacro(InputHasNumericTraitsCheck, (Concept::HasNumericTraits<PixelType>));
491  // End concept checking
492 #endif
493 
494 protected:
496  ~LabelGeometryImageFilter() override = default;
497  void
498  PrintSelf(std::ostream & os, Indent indent) const override;
499 
500  void
501  GenerateData() override;
502 
503 private:
504  bool
505  CalculateOrientedBoundingBoxVertices(vnl_symmetric_eigensystem<double> eig, LabelGeometry & m_LabelGeometry);
506 
511 
515 }; // end of class
516 
517 } // end namespace itk
518 
519 #ifndef ITK_MANUAL_INSTANTIATION
520 # include "itkLabelGeometryImageFilter.hxx"
521 #endif
522 
523 #endif
itk::LabelGeometryImageFilter::GetLabels
std::vector< LabelPixelType > GetLabels() const
Definition: itkLabelGeometryImageFilter.h:371
itk::LabelGeometryImageFilter::SetCalculateOrientedLabelRegions
void SetCalculateOrientedLabelRegions(const bool value)
Definition: itkLabelGeometryImageFilter.h:298
itk::SimpleDataObjectDecorator
Decorates any "simple" data type (data types without smart pointers) with a DataObject API.
Definition: itkSimpleDataObjectDecorator.h:66
itk::LabelGeometryImageFilter::HasLabel
bool HasLabel(LabelPixelType label) const
Definition: itkLabelGeometryImageFilter.h:351
itk::LabelGeometryImageFilter::SetCalculateOrientedBoundingBox
void SetCalculateOrientedBoundingBox(const bool value)
Definition: itkLabelGeometryImageFilter.h:279
itk::LabelGeometryImageFilter::LabelImageType
TLabelImage LabelImageType
Definition: itkLabelGeometryImageFilter.h:103
itk::LabelGeometryImageFilter::LabelIndicesType
std::vector< LabelIndexType > LabelIndicesType
Definition: itkLabelGeometryImageFilter.h:141
itk::LabelGeometryImageFilter::LabelGeometry::m_RotationMatrix
MatrixType m_RotationMatrix
Definition: itkLabelGeometryImageFilter.h:238
itk::LabelGeometryImageFilter::LabelGeometry::m_Eigenvectors
MatrixType m_Eigenvectors
Definition: itkLabelGeometryImageFilter.h:224
itk::LabelGeometryImageFilter::LabelGeometry::LabelGeometry
LabelGeometry()
Definition: itkLabelGeometryImageFilter.h:157
itk::Concept::HasNumericTraits
Definition: itkConceptChecking.h:712
itk::LabelGeometryImageFilter::m_CalculateOrientedBoundingBox
bool m_CalculateOrientedBoundingBox
Definition: itkLabelGeometryImageFilter.h:508
itk::LabelGeometryImageFilter::MapConstIterator
typename std::map< LabelPixelType, LabelGeometry >::const_iterator MapConstIterator
Definition: itkLabelGeometryImageFilter.h:246
itk::LabelGeometryImageFilter::LabelGeometry::m_BoundingBoxSize
LabelSizeType m_BoundingBoxSize
Definition: itkLabelGeometryImageFilter.h:230
itk::LabelGeometryImageFilter::LabelsType
std::vector< LabelPixelType > LabelsType
Definition: itkLabelGeometryImageFilter.h:138
itk::LabelGeometryImageFilter::LabelGeometry::m_OrientedBoundingBoxSize
LabelPointType m_OrientedBoundingBoxSize
Definition: itkLabelGeometryImageFilter.h:235
itk::LabelGeometryImageFilter::LabelPixelType
typename TLabelImage::PixelType LabelPixelType
Definition: itkLabelGeometryImageFilter.h:108
itk::LabelGeometryImageFilter::MatrixType
vnl_matrix< double > MatrixType
Definition: itkLabelGeometryImageFilter.h:147
itk::LabelGeometryImageFilter::IndexType
typename TIntensityImage::IndexType IndexType
Definition: itkLabelGeometryImageFilter.h:99
itk::LabelGeometryImageFilter::VectorType
std::vector< double > VectorType
Definition: itkLabelGeometryImageFilter.h:144
itk::NumericTraits::NonpositiveMin
static constexpr T NonpositiveMin()
Definition: itkNumericTraits.h:97
itk::LabelGeometryImageFilter::SetIntensityInput
void SetIntensityInput(const TIntensityImage *input)
Definition: itkLabelGeometryImageFilter.h:335
itk::GTest::TypedefsAndConstructors::Dimension2::VectorType
ImageBaseType::SpacingType VectorType
Definition: itkGTestTypedefsAndConstructors.h:53
itk::GTest::TypedefsAndConstructors::Dimension2::PointType
ImageBaseType::PointType PointType
Definition: itkGTestTypedefsAndConstructors.h:51
itk::LabelGeometryImageFilter::LabelGeometry::m_AxesLength
FixedArray< float, Self::ImageDimension > m_AxesLength
Definition: itkLabelGeometryImageFilter.h:225
itk::LabelGeometryImageFilter::SetCalculateOrientedIntensityRegions
void SetCalculateOrientedIntensityRegions(const bool value)
Definition: itkLabelGeometryImageFilter.h:317
itk::LabelGeometryImageFilter::LabelGeometry::m_BoundingBoxVolume
RealType m_BoundingBoxVolume
Definition: itkLabelGeometryImageFilter.h:231
itk::LabelGeometryImageFilter::BoundingBoxVerticesType
std::vector< LabelPointType > BoundingBoxVerticesType
Definition: itkLabelGeometryImageFilter.h:129
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itk::LabelGeometryImageFilter::m_AllLabels
LabelsType m_AllLabels
Definition: itkLabelGeometryImageFilter.h:514
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::LabelGeometryImageFilter::LabelGeometry::m_Eigenvalues
VectorType m_Eigenvalues
Definition: itkLabelGeometryImageFilter.h:223
itk::LabelGeometryImageFilter::LabelGeometry::m_OrientedBoundingBoxVolume
RealType m_OrientedBoundingBoxVolume
Definition: itkLabelGeometryImageFilter.h:234
itk::LabelGeometryImageFilter::LabelGeometry::m_SecondOrderCentralMoments
MatrixType m_SecondOrderCentralMoments
Definition: itkLabelGeometryImageFilter.h:222
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::LabelGeometryImageFilter::LabelGeometry::m_FirstOrderRawCrossMoment
SizeValueType m_FirstOrderRawCrossMoment
Definition: itkLabelGeometryImageFilter.h:219
itk::ImageToImageFilter
Base class for filters that take an image as input and produce an image as output.
Definition: itkImageToImageFilter.h:108
itk::LabelGeometryImageFilter::MapIterator
typename std::map< LabelPixelType, LabelGeometry >::iterator MapIterator
Definition: itkLabelGeometryImageFilter.h:245
itk::LabelGeometryImageFilter::LabelIndexType
typename TLabelImage::IndexType LabelIndexType
Definition: itkLabelGeometryImageFilter.h:107
itk::LabelGeometryImageFilter::LabelSizeType
typename TLabelImage::SizeType LabelSizeType
Definition: itkLabelGeometryImageFilter.h:106
itk::LabelGeometryImageFilter::RegionType
typename TIntensityImage::RegionType RegionType
Definition: itkLabelGeometryImageFilter.h:97
itk::LabelGeometryImageFilter::IntensityImageType
TIntensityImage IntensityImageType
Definition: itkLabelGeometryImageFilter.h:95
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::LabelGeometryImageFilter::LabelGeometry::m_OrientedIntensityImage
IntensityImageType::Pointer m_OrientedIntensityImage
Definition: itkLabelGeometryImageFilter.h:237
itk::LabelGeometryImageFilter::LabelGeometry::m_Centroid
LabelPointType m_Centroid
Definition: itkLabelGeometryImageFilter.h:214
itk::LabelGeometryImageFilter::LabelGeometry::m_Sum
RealType m_Sum
Definition: itkLabelGeometryImageFilter.h:213
itk::LabelGeometryImageFilter::LabelGeometry::m_Elongation
RealType m_Elongation
Definition: itkLabelGeometryImageFilter.h:227
itk::LabelGeometryImageFilter::LabelGeometry::m_Eccentricity
RealType m_Eccentricity
Definition: itkLabelGeometryImageFilter.h:226
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::LabelGeometryImageFilter::m_LabelGeometryMapper
MapType m_LabelGeometryMapper
Definition: itkLabelGeometryImageFilter.h:512
itk::LabelGeometryImageFilter::MapType
std::map< LabelPixelType, LabelGeometry > MapType
Definition: itkLabelGeometryImageFilter.h:244
itk::LabelGeometryImageFilter::GetIntensityInput
const TIntensityImage * GetIntensityInput() const
Definition: itkLabelGeometryImageFilter.h:343
itk::LabelGeometryImageFilter::LabelRegionType
typename TLabelImage::RegionType LabelRegionType
Definition: itkLabelGeometryImageFilter.h:105
itk::LabelGeometryImageFilter::RealType
typename NumericTraits< PixelType >::RealType RealType
Definition: itkLabelGeometryImageFilter.h:115
itk::LabelGeometryImageFilter::InputImagePointer
typename TIntensityImage::Pointer InputImagePointer
Definition: itkLabelGeometryImageFilter.h:96
itk::LabelGeometryImageFilter::LabelPointType
typename TLabelImage::PointType LabelPointType
Definition: itkLabelGeometryImageFilter.h:109
itk::LabelGeometryImageFilter::LabelGeometry::m_SecondOrderRawMoments
MatrixType m_SecondOrderRawMoments
Definition: itkLabelGeometryImageFilter.h:221
itk::LabelGeometryImageFilter::LabelGeometry::m_WeightedCentroid
LabelPointType m_WeightedCentroid
Definition: itkLabelGeometryImageFilter.h:215
itk::LabelGeometryImageFilter::LabelGeometry::m_FirstOrderCentralCrossMoment
RealType m_FirstOrderCentralCrossMoment
Definition: itkLabelGeometryImageFilter.h:220
itk::LabelGeometryImageFilter::LabelGeometry::m_Orientation
RealType m_Orientation
Definition: itkLabelGeometryImageFilter.h:228
itkImageToImageFilter.h
itk::LabelGeometryImageFilter::LabelGeometry
Geometry stored per label.
Definition: itkLabelGeometryImageFilter.h:153
itk::LabelGeometryImageFilter::GetNumberOfObjects
SizeValueType GetNumberOfObjects() const
Definition: itkLabelGeometryImageFilter.h:358
itk::LabelGeometryImageFilter::m_LabelGeometry
LabelGeometry m_LabelGeometry
Definition: itkLabelGeometryImageFilter.h:513
itk::FixedArray< typename LabelIndexType::IndexValueType, Self::ImageDimension *2 >
itk::LabelGeometryImageFilter::LabelGeometry::m_OrientedBoundingBoxVertices
BoundingBoxVerticesType m_OrientedBoundingBoxVertices
Definition: itkLabelGeometryImageFilter.h:233
itk::LabelGeometryImageFilter::m_CalculateOrientedLabelRegions
bool m_CalculateOrientedLabelRegions
Definition: itkLabelGeometryImageFilter.h:509
itk::LabelGeometryImageFilter::LabelGeometry::m_OrientedLabelImage
LabelImageType::Pointer m_OrientedLabelImage
Definition: itkLabelGeometryImageFilter.h:236
itk::NumericTraits
Define additional traits for native types such as int or float.
Definition: itkNumericTraits.h:58
itk::NumericTraits::max
static constexpr T max(const T &)
Definition: itkNumericTraits.h:167
itkArray.h
itk::LabelGeometryImageFilter::m_CalculatePixelIndices
bool m_CalculatePixelIndices
Definition: itkLabelGeometryImageFilter.h:507
itk::LabelGeometryImageFilter::LabelGeometry::m_BoundingBox
BoundingBoxType m_BoundingBox
Definition: itkLabelGeometryImageFilter.h:229
itk::NumericTraits::ZeroValue
static T ZeroValue()
Definition: itkNumericTraits.h:148
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:64
itk::LabelGeometryImageFilter::PixelType
typename TIntensityImage::PixelType PixelType
Definition: itkLabelGeometryImageFilter.h:100
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkArray.h:26
itk::LabelGeometryImageFilter::m_CalculateOrientedIntensityRegions
bool m_CalculateOrientedIntensityRegions
Definition: itkLabelGeometryImageFilter.h:510
itk::LabelGeometryImageFilter::LabelGeometry::m_PixelIndices
LabelIndicesType m_PixelIndices
Definition: itkLabelGeometryImageFilter.h:232
itk::LabelGeometryImageFilter::LabelGeometry::m_ZeroOrderMoment
SizeValueType m_ZeroOrderMoment
Definition: itkLabelGeometryImageFilter.h:216
itk::LabelGeometryImageFilter::SetCalculatePixelIndices
void SetCalculatePixelIndices(const bool value)
Definition: itkLabelGeometryImageFilter.h:252
itk::LabelGeometryImageFilter::LabelImagePointer
typename TLabelImage::Pointer LabelImagePointer
Definition: itkLabelGeometryImageFilter.h:104
itk::LabelGeometryImageFilter::LabelGeometry::m_OrientedBoundingBoxOrigin
LabelPointType m_OrientedBoundingBoxOrigin
Definition: itkLabelGeometryImageFilter.h:239
itkNumericTraits.h
itk::LabelGeometryImageFilter::LabelGeometry::m_FirstOrderWeightedRawMoments
IndexArrayType m_FirstOrderWeightedRawMoments
Definition: itkLabelGeometryImageFilter.h:218
itkSimpleDataObjectDecorator.h
itk::LabelGeometryImageFilter::LabelGeometry::m_FirstOrderRawMoments
IndexArrayType m_FirstOrderRawMoments
Definition: itkLabelGeometryImageFilter.h:217
itk::DataObject::Pointer
SmartPointer< Self > Pointer
Definition: itkDataObject.h:301
itk::LabelGeometryImageFilter::LabelGeometry::m_Label
LabelPixelType m_Label
Definition: itkLabelGeometryImageFilter.h:212
itkMath.h
itk::LabelGeometryImageFilter::GetNumberOfLabels
SizeValueType GetNumberOfLabels() const
Definition: itkLabelGeometryImageFilter.h:364
itk::ProcessObject::GetInput
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
itk::LabelGeometryImageFilter::SizeType
typename TIntensityImage::SizeType SizeType
Definition: itkLabelGeometryImageFilter.h:98
itk::SizeValueType
unsigned long SizeValueType
Definition: itkIntTypes.h:83
itk::LabelGeometryImageFilter
Given a label map and an optional intensity image, compute geometric features.
Definition: itkLabelGeometryImageFilter.h:77