Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
itk::ShortestPathImageFilter< TInputImageType, TOutputImageType > Class Template Reference

#include <itkShortestPathImageFilter.h>

Inheritance diagram for itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >:
Collaboration diagram for itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >:

Classes

struct  CompareNodeStar
 

Public Types

typedef ShortestPathImageFilter Self
 
typedef ImageToImageFilter< TInputImageType, TOutputImageType > Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef ShortestPathCostFunction< TInputImageType > CostFunctionType
 
typedef CostFunctionType::Pointer CostFunctionTypePointer
 
typedef TInputImageType InputImageType
 
typedef TInputImageType::Pointer InputImagePointer
 
typedef TInputImageType::PixelType InputImagePixelType
 
typedef TInputImageType::SizeType InputImageSizeType
 
typedef TInputImageType::IndexType IndexType
 
typedef itk::ImageRegionIteratorWithIndex< InputImageTypeInputImageIteratorType
 
typedef TOutputImageType OutputImageType
 
typedef TOutputImageType::Pointer OutputImagePointer
 
typedef TOutputImageType::PixelType OutputImagePixelType
 
typedef TOutputImageType::IndexType OutputImageIndexType
 
typedef ImageRegionIteratorWithIndex< OutputImageTypeOutputImageIteratorType
 
typedef itk::ShapedNeighborhoodIterator< TInputImageType > itkShapedNeighborhoodIteratorType
 

Public Member Functions

Pointer Clone () const
 
virtual const char * GetClassName () const
 
void PrintSelf (std::ostream &os, Indent indent) const
 
void SetStartIndex (const IndexType &StartIndex)
 
void AddEndIndex (const IndexType &index)
 
void SetEndIndex (const IndexType &EndIndex)
 
virtual void SetFullNeighborsMode (bool _arg)
 
virtual bool GetFullNeighborsMode ()
 
virtual void SetGraph_fullNeighbors (bool _arg)
 
virtual void SetMakeOutputImage (bool _arg)
 
virtual bool GetMakeOutputImage ()
 
virtual void SetStoreVectorOrder (bool _arg)
 
virtual bool GetStoreVectorOrder ()
 
virtual void SetCalcAllDistances (bool _arg)
 
virtual bool GetCalcAllDistances ()
 
virtual void SetActivateTimeOut (bool _arg)
 
virtual bool GetActivateTimeOut ()
 
std::vector< IndexTypeGetVectorPath ()
 
std::vector< std::vector< IndexType > > GetMultipleVectorPaths ()
 
OutputImagePointer GetVectorOrderImage ()
 
OutputImagePointer GetDistanceImage ()
 
void MakeShortestPathVector ()
 
void CleanUp ()
 
virtual void SetCostFunction (CostFunctionType *_arg)
 
virtual CostFunctionTypeGetCostFunction ()
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 ShortestPathImageFilter (Self &)
 
void operator= (const Self &)
 
 ShortestPathImageFilter ()
 
 ~ShortestPathImageFilter ()
 
void MakeOutputs ()
 
void GenerateData ()
 
double getEstimatedCostsToTarget (const IndexType &a)
 
TInputImageType::IndexType NodeToCoord (NodeNumType)
 
unsigned int CoordToNode (IndexType)
 
std::vector< ShortestPathNode * > GetNeighbors (NodeNumType nodeNum, bool FullNeighbors)
 
bool CoordIsInBounds (IndexType)
 
void InitGraph ()
 
void StartShortestPathSearch ()
 

Protected Attributes

std::vector< IndexTypem_endPoints
 
std::vector< IndexTypem_endPointsClosed
 
ShortestPathNodem_Nodes
 
NodeNumType m_Graph_NumberOfNodes
 
NodeNumType m_Graph_StartNode
 
NodeNumType m_Graph_EndNode
 
unsigned int m_ImageDimensions
 
bool m_Graph_fullNeighbors
 
std::vector< ShortestPathNode * > m_Graph_DiscoveredNodeList
 
bool m_FullNeighborsMode
 
bool m_MakeOutputImage
 
bool m_StoreVectorOrder
 
bool m_CalcAllDistances
 
bool multipleEndPoints
 
bool m_ActivateTimeOut
 
bool m_Initialized
 
CostFunctionTypePointer m_CostFunction
 
IndexType m_StartIndex
 
IndexType m_EndIndex
 
std::vector< IndexTypem_VectorPath
 
std::vector< std::vector< IndexType > > m_MultipleVectorPaths
 
std::vector< NodeNumTypem_VectorOrder
 
InputImageType::Pointer m_magnitudeImage
 

Static Protected Attributes

static const int BACKGROUND
 
static const int FOREGROUND
 

Detailed Description

template<class TInputImageType, class TOutputImageType>
class itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >

Definition at line 56 of file itkShortestPathImageFilter.h.

Member Typedef Documentation

template<class TInputImageType , class TOutputImageType >
typedef SmartPointer<const Self> itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::ConstPointer

Definition at line 63 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
typedef ShortestPathCostFunction<TInputImageType> itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::CostFunctionType

Definition at line 66 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
typedef CostFunctionType::Pointer itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::CostFunctionTypePointer

Definition at line 67 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
typedef TInputImageType::IndexType itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::IndexType

Definition at line 74 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
typedef itk::ImageRegionIteratorWithIndex<InputImageType> itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::InputImageIteratorType

Definition at line 75 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
typedef TInputImageType::PixelType itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::InputImagePixelType

Definition at line 72 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
typedef TInputImageType::Pointer itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::InputImagePointer

Definition at line 71 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
typedef TInputImageType::SizeType itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::InputImageSizeType

Definition at line 73 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
typedef TInputImageType itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::InputImageType

Definition at line 70 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
typedef itk::ShapedNeighborhoodIterator<TInputImageType> itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::itkShapedNeighborhoodIteratorType

Definition at line 82 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
typedef TOutputImageType::IndexType itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::OutputImageIndexType

Definition at line 80 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
typedef ImageRegionIteratorWithIndex<OutputImageType> itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::OutputImageIteratorType

Definition at line 81 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
typedef TOutputImageType::PixelType itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::OutputImagePixelType

Definition at line 79 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
typedef TOutputImageType::Pointer itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::OutputImagePointer

Definition at line 78 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
typedef TOutputImageType itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::OutputImageType

Definition at line 77 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
typedef SmartPointer<Self> itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::Pointer

Definition at line 62 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
typedef ShortestPathImageFilter itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::Self

Definition at line 60 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
typedef ImageToImageFilter<TInputImageType, TOutputImageType> itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::Superclass

Definition at line 61 of file itkShortestPathImageFilter.h.

Constructor & Destructor Documentation

template<class TInputImageType , class TOutputImageType >
itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::ShortestPathImageFilter ( Self )
protected
template<class TInputImageType , class TOutputImageType >
itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::ShortestPathImageFilter ( )
protected
template<class TInputImageType , class TOutputImageType >
itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::~ShortestPathImageFilter ( )
protected

Member Function Documentation

template<class TInputImageType , class TOutputImageType >
void itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::AddEndIndex ( const IndexType index)
template<class TInputImageType , class TOutputImageType >
void itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::CleanUp ( )
template<class TInputImageType , class TOutputImageType >
Pointer itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::Clone ( ) const
template<class TInputImageType , class TOutputImageType >
bool itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::CoordIsInBounds ( IndexType  )
protected
template<class TInputImageType , class TOutputImageType >
unsigned int itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::CoordToNode ( IndexType  )
protected
template<class TInputImageType , class TOutputImageType >
void itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::GenerateData ( )
protected
template<class TInputImageType , class TOutputImageType >
virtual bool itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::GetActivateTimeOut ( )
virtual
template<class TInputImageType , class TOutputImageType >
virtual bool itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::GetCalcAllDistances ( )
virtual
template<class TInputImageType , class TOutputImageType >
virtual const char* itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::GetClassName ( ) const
virtual
template<class TInputImageType , class TOutputImageType >
virtual CostFunctionType* itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::GetCostFunction ( )
virtual
template<class TInputImageType , class TOutputImageType >
OutputImagePointer itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::GetDistanceImage ( )
template<class TInputImageType , class TOutputImageType >
double itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::getEstimatedCostsToTarget ( const IndexType a)
protected
template<class TInputImageType , class TOutputImageType >
virtual bool itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::GetFullNeighborsMode ( )
virtual
template<class TInputImageType , class TOutputImageType >
virtual bool itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::GetMakeOutputImage ( )
virtual
template<class TInputImageType , class TOutputImageType >
std::vector<std::vector<IndexType> > itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::GetMultipleVectorPaths ( )
template<class TInputImageType , class TOutputImageType >
std::vector<ShortestPathNode *> itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::GetNeighbors ( NodeNumType  nodeNum,
bool  FullNeighbors 
)
protected
template<class TInputImageType , class TOutputImageType >
virtual bool itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::GetStoreVectorOrder ( )
virtual
template<class TInputImageType , class TOutputImageType >
OutputImagePointer itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::GetVectorOrderImage ( )
template<class TInputImageType , class TOutputImageType >
std::vector<IndexType> itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::GetVectorPath ( )
template<class TInputImageType , class TOutputImageType >
void itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::InitGraph ( )
protected
template<class TInputImageType , class TOutputImageType >
void itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::MakeOutputs ( )
protected
template<class TInputImageType , class TOutputImageType >
void itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::MakeShortestPathVector ( )
template<class TInputImageType , class TOutputImageType >
static Pointer itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::New ( )
static
template<class TInputImageType , class TOutputImageType >
TInputImageType::IndexType itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::NodeToCoord ( NodeNumType  )
protected
template<class TInputImageType , class TOutputImageType >
void itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::operator= ( const Self )
protected
template<class TInputImageType , class TOutputImageType >
void itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
template<class TInputImageType , class TOutputImageType >
virtual void itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::SetActivateTimeOut ( bool  _arg)
virtual
template<class TInputImageType , class TOutputImageType >
virtual void itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::SetCalcAllDistances ( bool  _arg)
virtual
template<class TInputImageType , class TOutputImageType >
virtual void itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::SetCostFunction ( CostFunctionType _arg)
virtual
template<class TInputImageType , class TOutputImageType >
void itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::SetEndIndex ( const IndexType EndIndex)
template<class TInputImageType , class TOutputImageType >
virtual void itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::SetFullNeighborsMode ( bool  _arg)
virtual
template<class TInputImageType , class TOutputImageType >
virtual void itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::SetGraph_fullNeighbors ( bool  _arg)
virtual
template<class TInputImageType , class TOutputImageType >
virtual void itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::SetMakeOutputImage ( bool  _arg)
virtual
template<class TInputImageType , class TOutputImageType >
void itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::SetStartIndex ( const IndexType StartIndex)
template<class TInputImageType , class TOutputImageType >
virtual void itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::SetStoreVectorOrder ( bool  _arg)
virtual
template<class TInputImageType , class TOutputImageType >
void itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::StartShortestPathSearch ( )
protected

Member Data Documentation

template<class TInputImageType , class TOutputImageType >
const int itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::BACKGROUND
staticprotected

Definition at line 175 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
const int itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::FOREGROUND
staticprotected

Definition at line 176 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
bool itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_ActivateTimeOut
protected

Definition at line 186 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
bool itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_CalcAllDistances
protected

Definition at line 181 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
CostFunctionTypePointer itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_CostFunction
protected

Definition at line 190 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
IndexType itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_EndIndex
protected

Definition at line 191 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
std::vector<IndexType> itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_endPoints
protected

Definition at line 159 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
std::vector<IndexType> itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_endPointsClosed
protected

Definition at line 164 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
bool itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_FullNeighborsMode
protected

Definition at line 177 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
std::vector<ShortestPathNode *> itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_Graph_DiscoveredNodeList
protected

Definition at line 172 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
NodeNumType itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_Graph_EndNode
protected

Definition at line 169 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
bool itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_Graph_fullNeighbors
protected

Definition at line 171 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
NodeNumType itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_Graph_NumberOfNodes
protected

Definition at line 167 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
NodeNumType itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_Graph_StartNode
protected

Definition at line 168 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
unsigned int itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_ImageDimensions
protected

Definition at line 170 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
bool itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_Initialized
protected

Definition at line 188 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
InputImageType::Pointer itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_magnitudeImage
protected

Definition at line 210 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
bool itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_MakeOutputImage
protected

Definition at line 179 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
std::vector<std::vector<IndexType> > itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_MultipleVectorPaths
protected

Definition at line 193 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
ShortestPathNode* itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_Nodes
protected

Definition at line 166 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
IndexType itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_StartIndex
protected

Definition at line 191 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
bool itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_StoreVectorOrder
protected

Definition at line 180 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
std::vector<NodeNumType> itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_VectorOrder
protected

Definition at line 195 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
std::vector<IndexType> itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::m_VectorPath
protected

Definition at line 192 of file itkShortestPathImageFilter.h.

template<class TInputImageType , class TOutputImageType >
bool itk::ShortestPathImageFilter< TInputImageType, TOutputImageType >::multipleEndPoints
protected

Definition at line 184 of file itkShortestPathImageFilter.h.


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