/* * airwaysTreeTypeDefinition.h * * Created on: May 19, 2014 * Author: caceres */ #ifndef AIRWAYSTREETYPEDEFINITION_H_ #define AIRWAYSTREETYPEDEFINITION_H_ //std #include #include #include #include //boost #include //itk #include "itkImage.h" #include "itkConnectedComponentImageFilter.h" #include "itkConstNeighborhoodIterator.h" #include "itkImageDuplicator.h" #include "itkSphereSpatialFunction.h" #include "itkConnectedThresholdImageFilter.h" #include "itkSubtractImageFilter.h" #include "itkCastImageFilter.h" //airways #include "../MathLib/vec3.h" #include "airwaysNode.h" #include "airwaysEdge.h" namespace airways { typedef std::pair pair_posVox_rad; typedef std::vector vec_pair_posVox_rad; /** * Pair of id nodes */ /** * Pair of a pair of nodes and a score */ //typedef std::pair Pair_PairNodes_Score; //---------------------------------------------------------------------------- /* * Typedef declaration */ /** * @typedef Defines a graph using the Boost DiGraph library */ typedef boost::adjacency_list DiGraph; //end typedef Graph //-------------------------------------------------------------------------- /** * @typedef Defines boost::vertex_descriptor of DiGraph */ typedef boost::graph_traits::vertex_descriptor DiGraph_VertexDescriptor; //-------------------------------------------------------------------------- ///DiGraph edge_descriptor typedef boost::graph_traits::edge_descriptor DiGraph_EdgeDescriptor; //-------------------------------------------------------------------------- ///DiGraph edge pair typedef std::pair DiGraph_EdgePair; //-------------------------------------------------------------------------- ///DiGraph Vertex IndexMap typedef boost::property_map::type DiGraph_VertexIndexMap; //-------------------------------------------------------------------------- ///DiGraph VertexIterator typedef boost::graph_traits::vertex_iterator DiGraph_VertexIterator; //-------------------------------------------------------------------------- ///DiGraph Vertex iterator pair typedef std::pair DiGraph_VertexIteratorPair; //-------------------------------------------------------------------------- ///DiGraph Edge iterator typedef boost::graph_traits::edge_iterator DiGraph_EdgeIterator; //-------------------------------------------------------------------------- ///DiGraph In Edge iterator typedef boost::graph_traits::in_edge_iterator DiGraph_InEdgeIterator; //-------------------------------------------------------------------------- ///DiGraph Out Edge iterator typedef boost::graph_traits::out_edge_iterator DiGraph_OutEdgeIterator; //-------------------------------------------------------------------------- ///DiGraph Adjacency iterator typedef boost::graph_traits::adjacency_iterator DiGraph_AdjacencyIterator; //-------------------------------------------------------------------------- ///DiGraph Vertex descriptor vector typedef std::vector DiGraph_VertexVector; //-------------------------------------------------------------------------- ///DiGraph Vertex descriptor queue typedef std::queue DiGraph_VertexQueue; //-------------------------------------------------------------------------- ///DiGraph Edge descriptor vector typedef std::vector DiGraph_EdgeVector; //---------------------------------------------------------------------------- const unsigned int Dim = 3; typedef double TPixel; typedef unsigned char TPixel2; typedef itk::Image TInputImage; typedef itk::Image TInputImage2; typedef itk::Image TInputImage3; //---------------------------------------------------------------------------- typedef itk::ImageDuplicator DuplicatorType; //-------------------------------------------------------------------------- typedef itk::ConstNeighborhoodIterator ConstNeighborhoodIterator; typedef itk::ImageRegionIterator RegionIterator; //---------------------------------------------------------------------------- typedef itk::SphereSpatialFunction<> SphereType; //---------------------------------------------------------------------------- typedef itk::ConnectedThresholdImageFilter ConnectedFilterType; //---------------------------------------------------------------------------- typedef itk::SubtractImageFilter SubtractImageFilterType; //---------------------------------------------------------------------------- typedef itk::CastImageFilter CastFilterType; typedef itk::ConnectedComponentImageFilter ConnectedComponentImageFilterType; //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- typedef std::vector EdgeVector; //---------------------------------------------------------------------------- typedef std::queue Vec3Queue; typedef std::vector Vec3List; // /* * End of typedef declaration */ } #endif /* AIRWAYSTREETYPEDEFINITION_H_ */