ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkShapedFloodFilledFunctionConditionalConstIterator.h>
Public Types | |
typedef TFunction::InputType | FunctionInputType |
typedef TFunction | FunctionType |
typedef TImage | ImageType |
typedef TImage::IndexType | IndexType |
typedef TImage::InternalPixelType | InternalPixelType |
typedef itk::ShapedNeighborhoodIterator < ImageType > | NeighborhoodIteratorType |
typedef TImage::OffsetType | OffsetType |
typedef TImage::PixelType | PixelType |
typedef TImage::RegionType | RegionType |
typedef std::vector< IndexType > | SeedsContainerType |
typedef ShapedFloodFilledFunctionConditionalConstIterator | Self |
typedef TImage::SizeType | SizeType |
Public Types inherited from itk::ConditionalConstIterator< TImage > |
Static Public Member Functions | |
static unsigned int | GetIteratorDimension () |
Static Public Attributes | |
static const unsigned int | NDimensions = TImage::ImageDimension |
Static Public Attributes inherited from itk::ConditionalConstIterator< TImage > | |
static const unsigned int | NDimension = TImage::ImageDimension |
Protected Types | |
typedef Image< unsigned char, itkGetStaticConstMacro(NDimensions) > | TTempImage |
Protected Attributes | |
bool | m_FoundUncheckedNeighbor |
SmartPointer< FunctionType > | m_Function |
ImageType::PointType | m_ImageOrigin |
RegionType | m_ImageRegion |
ImageType::SpacingType | m_ImageSpacing |
std::queue< IndexType > | m_IndexStack |
bool | m_IsValidIndex |
FunctionInputType | m_LocationVector |
NeighborhoodIteratorType | m_NeighborhoodIterator |
SeedsContainerType | m_Seeds |
TTempImage::Pointer | m_TempPtr |
bool | m_FullyConnected |
Protected Attributes inherited from itk::ConditionalConstIterator< TImage > | |
ImageType::ConstWeakPointer | m_Image |
bool | m_IsAtEnd |
RegionType | m_Region |
Iterates over a flood-filled spatial function with read-only access to pixels.
Contributed as a paper to the Insight Journal: http://hdl.handle.net/1926/1320
Definition at line 43 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
typedef TFunction::InputType itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FunctionInputType |
Type of vector used to store location info in the spatial function
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, and itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 55 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
typedef TFunction itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FunctionType |
Type of function
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, and itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 52 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
typedef TImage itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::ImageType |
Image typedef support.
Reimplemented from itk::ConditionalConstIterator< TImage >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, and itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 73 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
typedef TImage::IndexType itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::IndexType |
Index typedef support.
Reimplemented from itk::ConditionalConstIterator< TImage >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, and itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 58 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
typedef TImage::InternalPixelType itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::InternalPixelType |
Internal Pixel Type
Reimplemented from itk::ConditionalConstIterator< TImage >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, and itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 76 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
typedef itk::ShapedNeighborhoodIterator< ImageType > itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::NeighborhoodIteratorType |
Internal Neighborhood Iterator Type
Definition at line 82 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
typedef TImage::OffsetType itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::OffsetType |
Offset typedef support.
Definition at line 64 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
typedef TImage::PixelType itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::PixelType |
External Pixel Type
Reimplemented from itk::ConditionalConstIterator< TImage >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, and itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 79 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
typedef TImage::RegionType itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::RegionType |
Region typedef support
Reimplemented from itk::ConditionalConstIterator< TImage >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, and itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 70 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
typedef std::vector< IndexType > itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::SeedsContainerType |
Index Container Type
Definition at line 61 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
typedef ShapedFloodFilledFunctionConditionalConstIterator itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::Self |
Standard class typedefs.
Reimplemented from itk::ConditionalConstIterator< TImage >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, and itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 49 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
typedef TImage::SizeType itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::SizeType |
Size typedef support.
Reimplemented from itk::ConditionalConstIterator< TImage >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, and itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 67 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protected |
A temporary image used for storing info about indices 0 = pixel has not yet been processed 1 = pixel is not inside the function 2 = pixel is inside the function, neighbor check incomplete 3 = pixel is inside the function, neighbor check complete
Definition at line 236 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::ShapedFloodFilledFunctionConditionalConstIterator | ( | const ImageType * | imagePtr, |
FunctionType * | fnPtr, | ||
IndexType | startIndex | ||
) |
Constructor establishes an iterator to walk a particular image and a particular region of that image. This version of the constructor uses an explicit seed pixel for the flood fill, the "startIndex"
itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::ShapedFloodFilledFunctionConditionalConstIterator | ( | const ImageType * | imagePtr, |
FunctionType * | fnPtr, | ||
std::vector< IndexType > & | startIndices | ||
) |
Constructor establishes an iterator to walk a particular image and a particular region of that image. This version of the constructor uses a list of seed pixels for the flood fill
itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::ShapedFloodFilledFunctionConditionalConstIterator | ( | const ImageType * | imagePtr, |
FunctionType * | fnPtr | ||
) |
Constructor establishes an iterator to walk a particular image and a particular region of that image. This version of the constructor should be used when the seed pixel is unknown
|
inlinevirtual |
Default Destructor.
Definition at line 123 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
inline |
Put more seeds on the list
Definition at line 157 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
inline |
Clear all the seeds
Definition at line 163 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
void itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::DoFloodStep | ( | ) |
void itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FindSeedPixel | ( | ) |
Automatically find a seed pixel and set m_StartIndex. Does nothing if a seed pixel isn't found. A seed pixel is determined by traversing the input image's LargestPossibleRegion and applying the IsPixelIncluded() test.
void itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FindSeedPixels | ( | ) |
Automatically find all seed pixels.
|
virtual |
|
virtual |
|
inlinevirtual |
Get the pixel value
Implements itk::ConditionalConstIterator< TImage >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 149 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
bool itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GetFullyConnected | ( | ) | const |
|
inlinevirtual |
Definition at line 208 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
inlinevirtual |
Get the index. This provides a read only reference to the index. This causes the index to be calculated from pointer arithmetic and is therefore an expensive operation.
Implements itk::ConditionalConstIterator< TImage >.
Definition at line 145 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
inlinestatic |
Get the dimension (size) of the index.
Reimplemented from itk::ConditionalConstIterator< TImage >.
Definition at line 138 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
inlinevirtual |
Definition at line 223 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
inline |
Move an iterator to the beginning of the region. "Begin" is defined as the first pixel in the region.
Definition at line 170 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
void itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::InitializeIterator | ( | ) |
Initializes the iterator, called from constructor
|
inlinevirtual |
Is the iterator at the end of the region?
Implements itk::ConditionalConstIterator< TImage >.
Definition at line 153 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
pure virtual |
Compute whether the index of interest should be included in the flood
Implements itk::ConditionalConstIterator< TImage >.
Implemented in itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >.
|
inlinevirtual |
Walk forward one index
Implements itk::ConditionalConstIterator< TImage >.
Definition at line 203 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
inline |
operator= is provided to make sure the handle to the image is properly reference counted.
Reimplemented from itk::ConditionalConstIterator< TImage >.
Definition at line 130 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
References itk::ConditionalConstIterator< TImage >::m_Image, and itk::ConditionalConstIterator< TImage >::m_Region.
void itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::SetFullyConnected | ( | const bool | _arg | ) |
When m_FullyConnected is set to true, the neighborhood iterator will inspect an 8 respectively 26 neighborhood. When the value is set to false, the neighborhood will be 4 in 2D and 6 in 3D.
|
protected |
Indicates whether or not we've found a neighbor that needs to be checked.
Definition at line 263 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protected |
Defines the connectivity of the neighborhood iterator. In case of 2D the default connectivity is 4 (6 in 3D) and when m_FullyConnected is set to true the connectivity is 8 (26 in 3D).
Definition at line 273 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protected |
Smart pointer to the function we're evaluating
Definition at line 229 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protected |
The origin of the source image
Definition at line 244 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protected |
Region of the source image
Definition at line 253 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protected |
The spacing of the source image
Definition at line 247 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protected |
Stack used to hold the path of the iterator through the image
Definition at line 256 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protected |
Indicates whether or not an index is valid (inside an image)/
Definition at line 266 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protected |
Location vector used in the flood algorithm
Definition at line 259 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protected |
The neighborhood iterator
Definition at line 250 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protected |
A list of locations to start the recursive fill
Definition at line 241 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protected |
Definition at line 238 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
static |
Dimension of the image the iterator walks. This constant is needed so that functions that are templated over image iterator type (as opposed to being templated over pixel type and dimension) can have compile time access to the dimension of the image that the iterator walks.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, and itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 88 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.