ITK  6.0.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType > Class Template Reference

#include <itkParallelSparseFieldLevelSetImageFilter.h>

Detailed Description

template<typename TNeighborhoodType>
class itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >

A convenience class for storing indices which reference neighbor pixels within a neighborhood.

This class creates and stores indices for use in finding neighbors within an itk::NeighborhoodIterator object. Both an array of unsigned integer indices and an array of N dimensional offsets (from the center of the neighborhood) are created and stored. The indices and offsets correspond to the "city-block" neighbors, that is, 4-neighbors in 2d, 6-neighbors in 3d, etc.
Order of reference is lowest index to highest index in the neighborhood. For example, for 4 connectivity, the indices refer to the following neighbors:
1 *
2 * 3
4 *

Definition at line 76 of file itkParallelSparseFieldLevelSetImageFilter.h.

+ Collaboration diagram for itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >:

Public Types

using NeighborhoodType = TNeighborhoodType
 
using OffsetType = typename NeighborhoodType::OffsetType
 
using RadiusType = typename NeighborhoodType::RadiusType
 

Public Member Functions

const unsigned int & GetArrayIndex (unsigned int i) const
 
const OffsetTypeGetNeighborhoodOffset (unsigned int i) const
 
const RadiusTypeGetRadius () const
 
const unsigned int & GetSize () const
 
unsigned int GetStride (unsigned int i)
 
 ParallelSparseFieldCityBlockNeighborList ()
 
void Print (std::ostream &os, Indent indent) const
 
 ~ParallelSparseFieldCityBlockNeighborList ()
 

Static Public Attributes

static constexpr unsigned int Dimension = NeighborhoodType::Dimension
 

Private Attributes

std::vector< unsigned int > m_ArrayIndex {}
 
std::vector< OffsetTypem_NeighborhoodOffset {}
 
char m_Pad1 [128] {}
 
char m_Pad2 [128] {}
 
RadiusType m_Radius {}
 
unsigned int m_Size { 2 * Dimension }
 
unsigned int m_StrideTable [Dimension] {}
 

Member Typedef Documentation

◆ NeighborhoodType

template<typename TNeighborhoodType>
using itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::NeighborhoodType = TNeighborhoodType

Definition at line 79 of file itkParallelSparseFieldLevelSetImageFilter.h.

◆ OffsetType

template<typename TNeighborhoodType>
using itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::OffsetType = typename NeighborhoodType::OffsetType

Definition at line 80 of file itkParallelSparseFieldLevelSetImageFilter.h.

◆ RadiusType

template<typename TNeighborhoodType>
using itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::RadiusType = typename NeighborhoodType::RadiusType

Definition at line 81 of file itkParallelSparseFieldLevelSetImageFilter.h.

Constructor & Destructor Documentation

◆ ParallelSparseFieldCityBlockNeighborList()

template<typename TNeighborhoodType>
itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::ParallelSparseFieldCityBlockNeighborList ( )

◆ ~ParallelSparseFieldCityBlockNeighborList()

template<typename TNeighborhoodType>
itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::~ParallelSparseFieldCityBlockNeighborList ( )
inline

Definition at line 117 of file itkParallelSparseFieldLevelSetImageFilter.h.

Member Function Documentation

◆ GetArrayIndex()

template<typename TNeighborhoodType>
const unsigned int& itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::GetArrayIndex ( unsigned int  i) const
inline

Definition at line 92 of file itkParallelSparseFieldLevelSetImageFilter.h.

◆ GetNeighborhoodOffset()

template<typename TNeighborhoodType>
const OffsetType& itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::GetNeighborhoodOffset ( unsigned int  i) const
inline

Definition at line 98 of file itkParallelSparseFieldLevelSetImageFilter.h.

◆ GetRadius()

template<typename TNeighborhoodType>
const RadiusType& itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::GetRadius ( ) const
inline

Definition at line 86 of file itkParallelSparseFieldLevelSetImageFilter.h.

◆ GetSize()

template<typename TNeighborhoodType>
const unsigned int& itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::GetSize ( ) const
inline

Definition at line 104 of file itkParallelSparseFieldLevelSetImageFilter.h.

◆ GetStride()

template<typename TNeighborhoodType>
unsigned int itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::GetStride ( unsigned int  i)
inline

Definition at line 110 of file itkParallelSparseFieldLevelSetImageFilter.h.

◆ Print()

template<typename TNeighborhoodType>
void itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::Print ( std::ostream &  os,
Indent  indent 
) const

Member Data Documentation

◆ Dimension

template<typename TNeighborhoodType>
constexpr unsigned int itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::Dimension = NeighborhoodType::Dimension
staticconstexpr

Definition at line 83 of file itkParallelSparseFieldLevelSetImageFilter.h.

◆ m_ArrayIndex

template<typename TNeighborhoodType>
std::vector<unsigned int> itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::m_ArrayIndex {}
private

Definition at line 130 of file itkParallelSparseFieldLevelSetImageFilter.h.

◆ m_NeighborhoodOffset

template<typename TNeighborhoodType>
std::vector<OffsetType> itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::m_NeighborhoodOffset {}
private

Definition at line 131 of file itkParallelSparseFieldLevelSetImageFilter.h.

◆ m_Pad1

template<typename TNeighborhoodType>
char itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::m_Pad1[128] {}
private

Definition at line 127 of file itkParallelSparseFieldLevelSetImageFilter.h.

◆ m_Pad2

template<typename TNeighborhoodType>
char itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::m_Pad2[128] {}
private

Definition at line 136 of file itkParallelSparseFieldLevelSetImageFilter.h.

◆ m_Radius

template<typename TNeighborhoodType>
RadiusType itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::m_Radius {}
private

Definition at line 129 of file itkParallelSparseFieldLevelSetImageFilter.h.

◆ m_Size

template<typename TNeighborhoodType>
unsigned int itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::m_Size { 2 * Dimension }
private

Definition at line 128 of file itkParallelSparseFieldLevelSetImageFilter.h.

◆ m_StrideTable

template<typename TNeighborhoodType>
unsigned int itk::ParallelSparseFieldCityBlockNeighborList< TNeighborhoodType >::m_StrideTable[Dimension] {}
private

An internal table for keeping track of stride lengths in a neighborhood, i.e. the memory offsets between pixels along each dimensional axis.

Definition at line 135 of file itkParallelSparseFieldLevelSetImageFilter.h.


The documentation for this class was generated from the following file: