class_docstr: Compute the cosine distance between two streamlines.
class_docstr_tok: ["Compute","the","cosine","distance","between","two","streamlines","."]
code: def __init__(self):
      # For simplicity, features will be the vector between endpoints of a
      # streamline.
      super(CosineMetric, self).__init__(
          feature=VectorOfEndpointsFeature()
      )
  
file_path: dipy/doc/examples/segment_extending_clustering_framework.py
imports: import numpy
  from dipy.data import get_fnames
  from dipy.io.streamline import load_tractogram
  from dipy.tracking.streamline import Streamlines
  from dipy.viz import window, actor, colormap
  from dipy.segment.clustering import QuickBundles
  from dipy.segment.featurespeed import Feature, VectorOfEndpointsFeature
  from dipy.segment.metric import Metric, SumPointwiseEuclideanMetric
  from dipy.tracking.streamline import length
label_desc: Use image node_id 1 to create a new CosineMetric object from inherited base classes: Metric with example: obj = CosineMetric()