Orfeo Toolbox
3.16
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
OTB
Utilities
ITK
Code
Review
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
20
#include "
itkShapedFloodFilledImageFunctionConditionalConstIterator.h
"
21
22
namespace
itk
23
{
24
35
template
<
class
TImage,
class
TFunction>
36
class
ITK_EXPORT
ShapedFloodFilledImageFunctionConditionalIterator
:
public
ShapedFloodFilledImageFunctionConditionalConstIterator
<TImage, TFunction>
37
{
38
public
:
40
typedef
ShapedFloodFilledImageFunctionConditionalIterator
Self
;
41
typedef
ShapedFloodFilledImageFunctionConditionalConstIterator<TImage, TFunction>
Superclass
;
42
44
typedef
typename
Superclass::FunctionType
FunctionType
;
45
47
typedef
typename
Superclass::FunctionInputType
FunctionInputType
;
48
50
typedef
typename
Superclass::IndexType
IndexType
;
51
53
typedef
typename
Superclass::SizeType
SizeType
;
54
56
typedef
typename
Superclass::RegionType
RegionType
;
57
59
typedef
typename
Superclass::ImageType
ImageType
;
60
62
typedef
typename
Superclass::InternalPixelType
InternalPixelType
;
63
65
typedef
typename
Superclass::PixelType
PixelType
;
66
71
itkStaticConstMacro(NDimensions,
unsigned
int
, Superclass::NDimensions);
72
76
ShapedFloodFilledImageFunctionConditionalIterator
(
ImageType
*imagePtr,
77
FunctionType
*fnPtr,
78
IndexType
startIndex):
Superclass
(imagePtr, fnPtr, startIndex) {};
79
83
ShapedFloodFilledImageFunctionConditionalIterator
(
ImageType
*imagePtr,
84
FunctionType
*fnPtr,
85
std::vector<IndexType>& startIndex):
Superclass
(imagePtr, fnPtr, startIndex) {};
86
90
ShapedFloodFilledImageFunctionConditionalIterator
(
ImageType
*imagePtr,
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
102
virtual
~ShapedFloodFilledImageFunctionConditionalIterator
() {};
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