17#ifndef __dwi_tractography_connectome_exemplar_h__
18#define __dwi_tractography_connectome_exemplar_h__
29namespace Tractography {
39 Exemplar (
const size_t exemplar_index,
const size_t length,
const NodePair& nodes,
const std::pair<point_type, point_type>& COMs) :
53 node_COMs (that.node_COMs),
54 is_finalized (that.is_finalized) { }
60 node_COMs (that.node_COMs),
61 is_finalized (that.is_finalized) { }
67 void finalize (
const float);
71 bool is_diagonal()
const {
return nodes.first == nodes.second; }
73 float get_weight()
const {
return weight; }
78 std::pair<point_type, point_type> node_COMs;
void set_index(const size_t i)
std::pair< node_t, node_t > NodePair
PointType::Scalar length(const vector< PointType > &tck)