![]() |
Orfeo Toolbox
3.16
|
Iterates over a flood-filled image function. More...
#include <itkShapedFloodFilledImageFunctionConditionalConstIterator.h>
Inheritance diagram for itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >:
Collaboration diagram for itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >:Public Types | |
| typedef Superclass::FunctionInputType | FunctionInputType |
| typedef Superclass::FunctionType | FunctionType |
| typedef Superclass::ImageType | ImageType |
| typedef Superclass::IndexType | IndexType |
| typedef Superclass::InternalPixelType | InternalPixelType |
| typedef itk::ShapedNeighborhoodIterator < ImageType > | NeighborhoodIteratorType |
| typedef TImage::OffsetType | OffsetType |
| typedef Superclass::PixelType | PixelType |
| typedef Superclass::RegionType | RegionType |
| typedef ShapedFloodFilledImageFunctionConditionalConstIterator | Self |
| typedef Superclass::SizeType | SizeType |
| typedef ShapedFloodFilledFunctionConditionalConstIterator < TImage, TFunction > | Superclass |
Public Member Functions | |
| ShapedFloodFilledImageFunctionConditionalConstIterator (const ImageType *imagePtr, FunctionType *fnPtr, IndexType startIndex) | |
| ShapedFloodFilledImageFunctionConditionalConstIterator (const ImageType *imagePtr, FunctionType *fnPtr, std::vector< IndexType > &startIndex) | |
| ShapedFloodFilledImageFunctionConditionalConstIterator (const ImageType *imagePtr, FunctionType *fnPtr) | |
| virtual | ~ShapedFloodFilledImageFunctionConditionalConstIterator () |
| void | AddSeed (const IndexType seed) |
| void | ClearSeeds () |
| void | DoFloodStep () |
| void | FindSeedPixel () |
| void | FindSeedPixels () |
| virtual void | FullyConnectedOff () |
| virtual void | FullyConnectedOn () |
| const PixelType & | Get (void) const |
| bool | GetFullyConnected () const |
| virtual SmartPointer < FunctionType > | GetFunction () const |
| const IndexType | GetIndex () |
| void | GoToBegin () |
| void | InitializeIterator () |
| bool | IsAtEnd () |
| bool | IsPixelIncluded (const IndexType &index) const |
| void | operator++ () |
| void | SetFullyConnected (const bool _arg) |
Static Public Member Functions | |
| static unsigned int | GetIteratorDimension () |
Static Public Attributes | |
| static const unsigned int | NDimension = TImage::ImageDimension |
| static const unsigned int | NDimensions = Superclass::NDimensions |
Protected Types | |
| typedef Image< unsigned char, itkGetStaticConstMacro(NDimensions)> | TTempImage |
Protected Attributes | |
| bool | m_FoundUncheckedNeighbor |
| bool | m_FullyConnected |
| SmartPointer< FunctionType > | m_Function |
| ImageType::ConstWeakPointer | m_Image |
| ImageType::PointType | m_ImageOrigin |
| RegionType | m_ImageRegion |
| ImageType::SpacingType | m_ImageSpacing |
| std::queue< IndexType > | m_IndexStack |
| bool | m_IsAtEnd |
| bool | m_IsValidIndex |
| FunctionInputType | m_LocationVector |
| NeighborhoodIteratorType | m_NeighborhoodIterator |
| RegionType | m_Region |
| std::vector< IndexType > | m_StartIndices |
| TTempImage::Pointer | m_TempPtr |
Iterates over a flood-filled image function.
Contributed as a paper to the Insight Journal: http://hdl.handle.net/1926/1320
Definition at line 36 of file itkShapedFloodFilledImageFunctionConditionalConstIterator.h.
| typedef Superclass::FunctionInputType itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::FunctionInputType |
Type of vector used to store location info in the spatial function
Reimplemented from itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 50 of file itkShapedFloodFilledImageFunctionConditionalConstIterator.h.
| typedef Superclass::FunctionType itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::FunctionType |
Type of function
Reimplemented from itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 47 of file itkShapedFloodFilledImageFunctionConditionalConstIterator.h.
| typedef Superclass::ImageType itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::ImageType |
Image typedef support.
Reimplemented from itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 62 of file itkShapedFloodFilledImageFunctionConditionalConstIterator.h.
| typedef Superclass::IndexType itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::IndexType |
Index typedef support.
Reimplemented from itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 53 of file itkShapedFloodFilledImageFunctionConditionalConstIterator.h.
| typedef Superclass::InternalPixelType itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::InternalPixelType |
Internal Pixel Type
Reimplemented from itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 65 of file itkShapedFloodFilledImageFunctionConditionalConstIterator.h.
|
inherited |
Internal Neighborhood Iterator Type
Definition at line 79 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
inherited |
Offset typedef support.
Definition at line 61 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
| typedef Superclass::PixelType itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::PixelType |
External Pixel Type
Reimplemented from itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 68 of file itkShapedFloodFilledImageFunctionConditionalConstIterator.h.
| typedef Superclass::RegionType itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::RegionType |
Region typedef support
Reimplemented from itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 59 of file itkShapedFloodFilledImageFunctionConditionalConstIterator.h.
| typedef ShapedFloodFilledImageFunctionConditionalConstIterator itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::Self |
Standard class typedefs.
Reimplemented from itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 42 of file itkShapedFloodFilledImageFunctionConditionalConstIterator.h.
| typedef Superclass::SizeType itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::SizeType |
Size typedef support.
Reimplemented from itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 56 of file itkShapedFloodFilledImageFunctionConditionalConstIterator.h.
| typedef ShapedFloodFilledFunctionConditionalConstIterator<TImage, TFunction> itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::Superclass |
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 44 of file itkShapedFloodFilledImageFunctionConditionalConstIterator.h.
|
protectedinherited |
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 228 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
inline |
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"
Definition at line 79 of file itkShapedFloodFilledImageFunctionConditionalConstIterator.h.
|
inline |
Constructor establishes an iterator to walk a particular image and a particular region of that image. This version of the constructor uses an explicit list of seed pixels for the flood fill, the "startIndex"
Definition at line 89 of file itkShapedFloodFilledImageFunctionConditionalConstIterator.h.
|
inline |
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.
Definition at line 99 of file itkShapedFloodFilledImageFunctionConditionalConstIterator.h.
|
inlinevirtual |
Default Destructor.
Definition at line 104 of file itkShapedFloodFilledImageFunctionConditionalConstIterator.h.
|
inlineinherited |
Put more seeds on the list
Definition at line 154 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
inlineinherited |
Clear all the seeds
Definition at line 160 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
inherited |
Definition at line 174 of file itkShapedFloodFilledFunctionConditionalConstIterator.txx.
|
inherited |
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.
Definition at line 120 of file itkShapedFloodFilledFunctionConditionalConstIterator.txx.
|
inherited |
Automatically find all seed pixels.
Definition at line 146 of file itkShapedFloodFilledFunctionConditionalConstIterator.txx.
|
virtualinherited |
|
virtualinherited |
|
inlinevirtualinherited |
Get the pixel value
Implements itk::ConditionalConstIterator< TImage >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 146 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
inherited |
Definition at line 244 of file itkShapedFloodFilledFunctionConditionalConstIterator.txx.
|
inlinevirtualinherited |
Definition at line 205 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
inlinevirtualinherited |
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 142 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
inlinestaticinherited |
Get the dimension (size) of the index.
Reimplemented from itk::ConditionalConstIterator< TImage >.
Definition at line 135 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
inlineinherited |
Move an iterator to the beginning of the region. "Begin" is defined as the first pixel in the region.
Definition at line 167 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
inherited |
Initializes the iterator, called from constructor
Definition at line 76 of file itkShapedFloodFilledFunctionConditionalConstIterator.txx.
References itk::Size< VDimension >::Fill(), and itk::setConnectivity().
|
inlinevirtualinherited |
Is the iterator at the end of the region?
Implements itk::ConditionalConstIterator< TImage >.
Definition at line 150 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
virtual |
Compute whether the index of interest should be included in the flood
Implements itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Definition at line 27 of file itkShapedFloodFilledImageFunctionConditionalConstIterator.txx.
|
inlinevirtualinherited |
Walk forward one index
Implements itk::ConditionalConstIterator< TImage >.
Definition at line 200 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
inherited |
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.
Definition at line 232 of file itkShapedFloodFilledFunctionConditionalConstIterator.txx.
References itk::setConnectivity().
|
protectedinherited |
Indicates whether or not we've found a neighbor that needs to be checked.
Definition at line 255 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protectedinherited |
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 265 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protectedinherited |
Smart pointer to the function we're evaluating
Definition at line 216 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protectedinherited |
Smart pointer to the source image.
Definition at line 104 of file itkConditionalConstIterator.h.
Referenced by itk::ConditionalConstIterator< TImage >::operator=(), itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator=(), and itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator=().
|
protectedinherited |
The origin of the source image
Definition at line 236 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protectedinherited |
Region of the source image
Definition at line 245 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protectedinherited |
The spacing of the source image
Definition at line 239 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protectedinherited |
Stack used to hold the path of the iterator through the image
Definition at line 248 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protectedinherited |
Is the iterator at the end of its walk?
Definition at line 110 of file itkConditionalConstIterator.h.
|
protectedinherited |
Indicates whether or not an index is valid (inside an image)/
Definition at line 258 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protectedinherited |
Location vector used in the flood algorithm
Definition at line 251 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protectedinherited |
The neighborhood iterator
Definition at line 242 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protectedinherited |
Region type to iterate over.
Definition at line 107 of file itkConditionalConstIterator.h.
Referenced by itk::ConditionalConstIterator< TImage >::operator=(), itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator=(), and itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator=().
|
protectedinherited |
A list of locations to start the recursive fill
Definition at line 233 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
protectedinherited |
Definition at line 230 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.
|
staticinherited |
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.
Definition at line 47 of file itkConditionalConstIterator.h.
|
static |
Dimension of the image the iterator walks. This constant is needed so 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 from itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 74 of file itkShapedFloodFilledImageFunctionConditionalConstIterator.h.