Orfeo Toolbox  3.16
itkShapedFloodFilledImageFunctionConditionalIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkShapedFloodFilledImageFunctionConditionalIterator.h,v $
5  Language: C++
6  Date: $Date: 2009-04-28 16:16:26 $
7  Version: $Revision: 1.2 $
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 #ifndef __itkShapedFloodFilledImageFunctionConditionalIterator_h
18 #define __itkShapedFloodFilledImageFunctionConditionalIterator_h
19 
21 
22 namespace itk
23 {
24 
35 template<class TImage, class TFunction>
37 {
38 public:
42 
45 
48 
50  typedef typename Superclass::IndexType IndexType;
51 
53  typedef typename Superclass::SizeType SizeType;
54 
57 
59  typedef typename Superclass::ImageType ImageType;
60 
63 
65  typedef typename Superclass::PixelType PixelType;
66 
71  itkStaticConstMacro(NDimensions, unsigned int, Superclass::NDimensions);
72 
77  FunctionType *fnPtr,
78  IndexType startIndex): Superclass(imagePtr, fnPtr, startIndex) {};
79 
84  FunctionType *fnPtr,
85  std::vector<IndexType>& startIndex): Superclass(imagePtr, fnPtr, startIndex) {};
86 
91  FunctionType *fnPtr): Superclass(imagePtr, fnPtr) {};
92 
94  const PixelType & Get(void) const
95  { return const_cast<ImageType *>(this->m_Image.GetPointer())->GetPixel(this->m_IndexStack.front() ); }
96 
98  void Set( const PixelType & value)
99  { const_cast<ImageType *>(this->m_Image.GetPointer())->GetPixel(this->m_IndexStack.front() ) = value; }
100 
103 };
104 
105 } // end namespace itk
106 
107 #endif

Generated at Sun May 19 2013 00:06:22 for Orfeo Toolbox with doxygen 1.8.3.1