Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkConnectomicsShortestPathHistogram.h
Go to the documentation of this file.
1 
2 /*===================================================================
3 
4 The Medical Imaging Interaction Toolkit (MITK)
5 
6 Copyright (c) German Cancer Research Center,
7 Division of Medical and Biological Informatics.
8 All rights reserved.
9 
10 This software is distributed WITHOUT ANY WARRANTY; without
11 even the implied warranty of MERCHANTABILITY or FITNESS FOR
12 A PARTICULAR PURPOSE.
13 
14 See LICENSE.txt or http://www.mitk.org for details.
15 
16 ===================================================================*/
17 
18 
19 #ifndef _MITK_ConnectomicsShortestPathHistogram_H
20 #define _MITK_ConnectomicsShortestPathHistogram_H
21 
23 
24 #include <MitkConnectomicsExports.h>
25 
26 namespace mitk {
27 
31  {
32 
33  public:
34 
37  {
39  WeightedUndirectedMode
40  };
41 
44 
46  void SetShortestPathCalculationMode( const ShortestPathCalculationMode & );
47 
49  ShortestPathCalculationMode GetShortestPathCalculationMode();
50 
52  double GetEfficiency();
53 
54 
55  protected:
56 
57  /* Typedefs */
59  typedef boost::graph_traits< NetworkType >::vertex_descriptor DescriptorType;
60  typedef boost::graph_traits< NetworkType >::vertex_iterator IteratorType;
61 
63  virtual void ComputeFromConnectomicsNetwork( ConnectomicsNetwork* source ) override;
64 
66  void CalculateUnweightedUndirectedShortestPaths( NetworkType* boostGraph );
67 
69  void CalculateWeightedUndirectedShortestPaths( NetworkType* boostGraph );
70 
72  void ConvertDistanceMapToHistogram();
73 
76 
78  std::vector< std::vector< int > > m_DistanceMatrix;
79 
82  };
83 
84 }
85 
86 #endif /* _MITK_ConnectomicsShortestPathHistogram_H */
boost::graph_traits< NetworkType >::vertex_iterator IteratorType
DataCollection - Class to facilitate loading/accessing structured data.
Superclass for histograms working with connectomic networks.
boost::adjacency_list< boost::vecS, boost::vecS, boost::undirectedS, NetworkNode, NetworkEdge > NetworkType
A class to calculate and store the shortest path between each pair of nodes.
boost::graph_traits< NetworkType >::vertex_descriptor DescriptorType
Connectomics Network Class.